diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2009-04-20 21:05:32 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2009-04-20 21:05:32 +0000 |
commit | 081aa41db9c0fc42b33d3854bca08a2556213f93 (patch) | |
tree | a0333bf641691e94aebaf45c7df7a03b64519a21 /libswscale | |
parent | c3dc6c5a6b2dc60b224380803046fe52fa80f8c8 (diff) | |
download | ffmpeg-081aa41db9c0fc42b33d3854bca08a2556213f93.tar.gz |
Use generic BE check instead of checking for gray16LE.
Originally committed as revision 29213 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Diffstat (limited to 'libswscale')
-rw-r--r-- | libswscale/swscale.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libswscale/swscale.c b/libswscale/swscale.c index b563784fc9..ff35e33213 100644 --- a/libswscale/swscale.c +++ b/libswscale/swscale.c @@ -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]; |