From 9a334290144efb3da5e7de01609d34101f01870d Mon Sep 17 00:00:00 2001 From: vitor Date: Mon, 27 Oct 2008 19:59:01 +0000 Subject: Silence GCC warnings: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: svn://svn.mplayerhq.hu/mplayer/trunk@27837 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libswscale/swscale.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libswscale') diff --git a/libswscale/swscale.c b/libswscale/swscale.c index a399ee9197..577d09333e 100644 --- a/libswscale/swscale.c +++ b/libswscale/swscale.c @@ -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; -- cgit v1.2.3