diff options
Diffstat (limited to 'libswscale/swscale.c')
-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]; |