[FFmpeg-cvslog] r27837 - trunk/libswscale/swscale.c
vitor
subversion
Mon Oct 27 20:59:02 CET 2008
Author: vitor
Date: Mon Oct 27 20:59:01 2008
New Revision: 27837
Log:
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
Modified:
trunk/libswscale/swscale.c
Modified: trunk/libswscale/swscale.c
==============================================================================
--- trunk/libswscale/swscale.c (original)
+++ trunk/libswscale/swscale.c Mon Oct 27 20:59:01 2008
@@ -2734,7 +2734,8 @@ int sws_scale(SwsContext *c, uint8_t* sr
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;
More information about the ffmpeg-cvslog
mailing list