summaryrefslogtreecommitdiffstats
path: root/libswscale/swscale.c
diff options
context:
space:
mode:
Diffstat (limited to 'libswscale/swscale.c')
-rw-r--r--libswscale/swscale.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libswscale/swscale.c b/libswscale/swscale.c
index 01b175c354..139bc55e5f 100644
--- a/libswscale/swscale.c
+++ b/libswscale/swscale.c
@@ -1849,7 +1849,7 @@ static int gray16swap(SwsContext *c, uint8_t* src[], int srcStride[], int srcSli
int height= srcSliceH;
int i, j;
uint16_t *srcPtr= (uint16_t*)src[0];
- uint16_t *dstPtr= dst[0] + dstStride[0]*y/2;
+ uint16_t *dstPtr= (uint16_t*)(dst[0] + dstStride[0]*y/2);
for (i=0; i<height; i++)
{
for (j=0; j<length; j++) dstPtr[j] = bswap_16(srcPtr[j]);