Commit 081aa41d authored by Michael Niedermayer's avatar Michael Niedermayer

Use generic BE check instead of checking for gray16LE.

Originally committed as revision 29213 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
parent c3dc6c5a
......@@ -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];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment