Browse Source

Use generic BE check instead of checking for gray16LE.

Originally committed as revision 29213 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
tags/v0.6
Michael Niedermayer 16 years ago
parent
commit
081aa41db9
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libswscale/swscale.c

+ 1
- 1
libswscale/swscale.c View File

@@ -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…
Cancel
Save