From 081aa41db9c0fc42b33d3854bca08a2556213f93 Mon Sep 17 00:00:00 2001
From: Michael Niedermayer <michaelni@gmx.at>
Date: Mon, 20 Apr 2009 21:05:32 +0000
Subject: [PATCH] Use generic BE check instead of checking for gray16LE.

Originally committed as revision 29213 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
---
 libswscale/swscale.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libswscale/swscale.c b/libswscale/swscale.c
index b563784fc93..ff35e33213c 100644
--- a/libswscale/swscale.c
+++ b/libswscale/swscale.c
@@ -2174,7 +2174,7 @@ static int gray16togray(SwsContext *c, uint8_t* src[], int srcStride[], int srcS
         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];
-- 
GitLab