mirror of
https://github.com/mpv-player/mpv
synced 2025-01-11 09:29:29 +00: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 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30340 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
452993b4eb
commit
21a572c8de
@ -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];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user