100l fix if condition
authorbcoudurier <bcoudurier@b3059339-0415-0410-9bf9-f77b7e298cf2>
Mon, 27 Sep 2010 23:47:54 +0000 (23:47 +0000)
committerbcoudurier <bcoudurier@b3059339-0415-0410-9bf9-f77b7e298cf2>
Mon, 27 Sep 2010 23:47:54 +0000 (23:47 +0000)
git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@32395 b3059339-0415-0410-9bf9-f77b7e298cf2

libswscale/swscale.c

index aa400f6..375171f 100644 (file)
@@ -1941,7 +1941,7 @@ int sws_scale(SwsContext *c, const uint8_t* const src[], const int srcStride[],
                 r= (i>>3    )*255;
                 g= ((i>>1)&3)*85;
                 b= (i&1     )*255;
-            } else if(c->srcFormat == PIX_FMT_GRAY8 || PIX_FMT_Y400A) {
+            } else if(c->srcFormat == PIX_FMT_GRAY8 || c->srcFormat == PIX_FMT_Y400A) {
                 r = g = b = i;
             } else {
                 assert(c->srcFormat == PIX_FMT_BGR4_BYTE);