Commit 69125aac authored by michael's avatar michael

Use generic BE check instead of checking for gray16LE.


git-svn-id: file:///var/local/repositories/mplayer/trunk/libswscale@29213 b3059339-0415-0410-9bf9-f77b7e298cf2
parent bb9a0314
......@@ -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