aboutsummaryrefslogtreecommitdiffstats
path: root/libswscale/swscale.c
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-06-01 03:36:23 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-06-01 03:36:23 +0000
commitb8b015f483665e7adadca6cad9adafa7af890af4 (patch)
tree4c50846d348af161274da89039fbe33af6a8ac9b /libswscale/swscale.c
parent74498eb44b87120cdcd48ba23728b818def5faee (diff)
downloadffmpeg-b8b015f483665e7adadca6cad9adafa7af890af4.tar.gz
cast to correct type, suppress warnings
Originally committed as revision 26949 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
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]);