mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +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:
parent
c3dc6c5a6b
commit
081aa41db9
@ -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
Block a user