# HG changeset patch # User vitor # Date 1225137541 0 # Node ID e6997a81f8ccaf43ce6de5ffe6c2143d09a496f0 # Parent 3594f4881efd85bc590924e73ccb07506ed82710 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 diff -r 3594f4881efd -r e6997a81f8cc libswscale/swscale.c --- a/libswscale/swscale.c Mon Oct 27 09:05:27 2008 +0000 +++ b/libswscale/swscale.c Mon Oct 27 19:59:01 2008 +0000 @@ -2734,7 +2734,8 @@ 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;