Mercurial > mplayer.hg
changeset 30299:e054adfb8849
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
author | stefano |
---|---|
date | Sun, 17 Jan 2010 00:26:29 +0000 |
parents | c37405b37538 |
children | 191571148d95 |
files | libswscale/swscale.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libswscale/swscale.c Sun Jan 17 00:21:50 2010 +0000 +++ b/libswscale/swscale.c Sun Jan 17 00:26:29 2010 +0000 @@ -2965,7 +2965,7 @@ 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;