Commit b26517ad authored by vitor's avatar vitor

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


git-svn-id: file:///var/local/repositories/mplayer/trunk/libswscale@27837 b3059339-0415-0410-9bf9-f77b7e298cf2
parent 85d46611
...@@ -2734,7 +2734,8 @@ int sws_scale(SwsContext *c, uint8_t* src[], int srcStride[], int srcSliceY, ...@@ -2734,7 +2734,8 @@ int sws_scale(SwsContext *c, uint8_t* src[], int srcStride[], int srcSliceY,
r= (i>>3 )*255; r= (i>>3 )*255;
g= ((i>>1)&3)*85; g= ((i>>1)&3)*85;
b= (i&1 )*255; b= (i&1 )*255;
}else if(c->srcFormat == PIX_FMT_BGR4_BYTE){ }else {
assert(c->srcFormat == PIX_FMT_BGR4_BYTE);
b= (i>>3 )*255; b= (i>>3 )*255;
g= ((i>>1)&3)*85; g= ((i>>1)&3)*85;
r= (i&1 )*255; r= (i&1 )*255;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment