From b8b015f483665e7adadca6cad9adafa7af890af4 Mon Sep 17 00:00:00 2001 From: Baptiste Coudurier Date: Sun, 1 Jun 2008 03:36:23 +0000 Subject: [PATCH] cast to correct type, suppress warnings Originally committed as revision 26949 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale --- libswscale/swscale.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libswscale/swscale.c b/libswscale/swscale.c index 01b175c..139bc55 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