mirror of https://github.com/mpv-player/mpv
Use generic BE check instead of checking for gray16LE.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29213 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
36fd4baa05
commit
1423dd2165
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue