diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-01-17 00:21:50 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-01-17 00:21:50 +0000 |
commit | 5090d8e16ac651611b6bad1d3e9e295c6fa4ff6d (patch) | |
tree | ad0789a28257d8d7b9e63ba6f9e160fa01bde153 /libswscale/swscale.c | |
parent | a630ed3ee901ac5e24b7fdf62523701f781b3ec9 (diff) | |
download | ffmpeg-5090d8e16ac651611b6bad1d3e9e295c6fa4ff6d.tar.gz |
Add a const qualifier in a cast, fix the gcc warning:
swscale.c: In function ‘planarCopy’:
swscale.c:2256: warning: cast discards qualifiers from pointer target type
Originally committed as revision 30340 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
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 d256f10615..0b12b5e20b 100644 --- a/libswscale/swscale.c +++ b/libswscale/swscale.c @@ -2253,7 +2253,7 @@ static int planarCopy(SwsContext *c, const uint8_t* src[], int srcStride[], int for (i=0; i<height; i++) { for (j=0; j<length; j++) - ((uint16_t*)dstPtr)[j] = bswap_16(((uint16_t*)srcPtr)[j]); + ((uint16_t*)dstPtr)[j] = bswap_16(((const uint16_t*)srcPtr)[j]); srcPtr+= srcStride[plane]; dstPtr+= dstStride[plane]; } |