mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-18 05:24:42 +00:00
Silence GCC warnings:
ibswscale/swscale.c: In function ‘sws_scale’: libswscale/swscale.c:2678: warning: ‘b’ may be used uninitialized in this function libswscale/swscale.c:2678: warning: ‘g’ may be used uninitialized in this function libswscale/swscale.c:2678: warning: ‘r’ may be used uninitialized in this function Originally committed as revision 27837 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
This commit is contained in:
parent
2ee054c215
commit
75add6fbfc
@ -2734,7 +2734,8 @@ int sws_scale(SwsContext *c, uint8_t* src[], int srcStride[], int srcSliceY,
|
||||
r= (i>>3 )*255;
|
||||
g= ((i>>1)&3)*85;
|
||||
b= (i&1 )*255;
|
||||
}else if(c->srcFormat == PIX_FMT_BGR4_BYTE){
|
||||
}else {
|
||||
assert(c->srcFormat == PIX_FMT_BGR4_BYTE);
|
||||
b= (i>>3 )*255;
|
||||
g= ((i>>1)&3)*85;
|
||||
r= (i&1 )*255;
|
||||
|
Loading…
Reference in New Issue
Block a user