1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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
This commit is contained in:
Stefano Sabatini 2010-01-17 00:21:50 +00:00
parent a630ed3ee9
commit 5090d8e16a

View File

@ -2253,7 +2253,7 @@ static int planarCopy(SwsContext *c, const uint8_t* src[], int srcStride[], int
for (i=0; i<height; i++) { for (i=0; i<height; i++) {
for (j=0; j<length; j++) 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]; srcPtr+= srcStride[plane];
dstPtr+= dstStride[plane]; dstPtr+= dstStride[plane];
} }