mirror of
https://github.com/mpv-player/mpv
synced 2024-12-24 15:52:25 +00:00
Add a const qualifier in a cast, fix the gcc warning:
swscale.c: In function ‘sws_scale’: swscale.c:2968: warning: cast discards qualifiers from pointer target type git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30341 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
21a572c8de
commit
f9569e1114
@ -2965,7 +2965,7 @@ int sws_scale(SwsContext *c, const uint8_t* src[], int srcStride[], int srcSlice
|
||||
for (i=0; i<256; i++) {
|
||||
int p, r, g, b,y,u,v;
|
||||
if(c->srcFormat == PIX_FMT_PAL8) {
|
||||
p=((uint32_t*)(src[1]))[i];
|
||||
p=((const uint32_t*)(src[1]))[i];
|
||||
r= (p>>16)&0xFF;
|
||||
g= (p>> 8)&0xFF;
|
||||
b= p &0xFF;
|
||||
|
Loading…
Reference in New Issue
Block a user