summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-04-20 21:05:32 +0000
committermichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-04-20 21:05:32 +0000
commit1423dd216587d01f11fc8585131757bea6e59e0f (patch)
tree283dd5c229e43755bb832800efbd9c0864412b5c
parent36fd4baa051a000458a9843f75cbd364afc82d64 (diff)
downloadmpv-1423dd216587d01f11fc8585131757bea6e59e0f.tar.bz2
mpv-1423dd216587d01f11fc8585131757bea6e59e0f.tar.xz
Use generic BE check instead of checking for gray16LE.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29213 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--libswscale/swscale.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libswscale/swscale.c b/libswscale/swscale.c
index b563784fc9..ff35e33213 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];