Commit c0bf912f authored by stefano's avatar stefano

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


git-svn-id: file:///var/local/repositories/mplayer/trunk/libswscale@30340 b3059339-0415-0410-9bf9-f77b7e298cf2
parent 6a34a3a7
...@@ -2253,7 +2253,7 @@ static int planarCopy(SwsContext *c, const uint8_t* src[], int srcStride[], int ...@@ -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];
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment