You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-16 22:42:38 +02:00
Use generic BE check instead of checking for gray16LE.
Originally committed as revision 29213 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
This commit is contained in:
@ -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[1], 128, dstStride[1]*height);
|
||||||
memset(dst[2], 128, dstStride[2]*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 (i=0; i<height; i++)
|
||||||
{
|
{
|
||||||
for (j=0; j<length; j++) dstPtr[j] = srcPtr[j<<1];
|
for (j=0; j<length; j++) dstPtr[j] = srcPtr[j<<1];
|
||||||
|
Reference in New Issue
Block a user