[FFmpeg-cvslog] r29213 - trunk/libswscale/swscale.c

michael subversion
Mon Apr 20 23:05:32 CEST 2009


Author: michael
Date: Mon Apr 20 23:05:32 2009
New Revision: 29213

Log:
Use generic BE check instead of checking for gray16LE.

Modified:
   trunk/libswscale/swscale.c

Modified: trunk/libswscale/swscale.c
==============================================================================
--- trunk/libswscale/swscale.c	Mon Apr 20 23:04:55 2009	(r29212)
+++ trunk/libswscale/swscale.c	Mon Apr 20 23:05:32 2009	(r29213)
@@ -2174,7 +2174,7 @@ static int gray16togray(SwsContext *c, u
         memset(dst[1], 128, dstStride[1]*height);
         memset(dst[2], 128, dstStride[2]*height);
     }
-    if (c->srcFormat == PIX_FMT_GRAY16LE) srcPtr++;
+    if (!isBE(c->srcFormat)) srcPtr++;
     for (i=0; i<height; i++)
     {
         for (j=0; j<length; j++) dstPtr[j] = srcPtr[j<<1];



More information about the ffmpeg-cvslog mailing list