changeset 29172:a5b18d98eaf0

Use generic BE check instead of checking for gray16LE.
author michael
date Mon, 20 Apr 2009 21:05:32 +0000
parents 091f16266a60
children dbf9cf2438b0
files libswscale/swscale.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libswscale/swscale.c	Mon Apr 20 21:04:55 2009 +0000
+++ b/libswscale/swscale.c	Mon Apr 20 21:05:32 2009 +0000
@@ -2174,7 +2174,7 @@
         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];