summaryrefslogtreecommitdiffstats
path: root/libswscale
diff options
context:
space:
mode:
authorbcoudurier <bcoudurier@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-06-01 03:36:23 +0000
committerbcoudurier <bcoudurier@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-06-01 03:36:23 +0000
commit3b5904ef9a4677d4d92fd5038c4552b81028ece1 (patch)
tree9a21e0145f74f4cfb44be3f625d7c515c38205b7 /libswscale
parentf8ac253ab4c2fe36a62b98d9ee0562ef1de8f58e (diff)
downloadmpv-3b5904ef9a4677d4d92fd5038c4552b81028ece1.tar.bz2
mpv-3b5904ef9a4677d4d92fd5038c4552b81028ece1.tar.xz
cast to correct type, suppress warnings
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26949 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libswscale')
-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]);