diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-01-17 00:26:29 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-01-17 00:26:29 +0000 |
commit | e922e34c962c3b60f9a7ce9a48fbcf5e13e4630b (patch) | |
tree | 00905856cb34bcd1f1348bab1d776ec0aac64fd2 /libswscale/swscale.c | |
parent | 1454618426f6983691eba3b89d4272641297405d (diff) | |
download | ffmpeg-e922e34c962c3b60f9a7ce9a48fbcf5e13e4630b.tar.gz |
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
Originally committed as revision 30341 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 0b12b5e20b..d312837591 100644 --- a/libswscale/swscale.c +++ b/libswscale/swscale.c @@ -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; |