From f9569e1114eff7a4bfe242ede9a6f89de806fa77 Mon Sep 17 00:00:00 2001 From: stefano Date: Sun, 17 Jan 2010 00:26:29 +0000 Subject: =?UTF-8?q?Add=20a=20const=20qualifier=20in=20a=20cast,=20fix=20th?= =?UTF-8?q?e=20gcc=20warning:=20swscale.c:=20In=20function=20=E2=80=98sws?= =?UTF-8?q?=5Fscale=E2=80=99:=20swscale.c:2968:=20warning:=20cast=20discar?= =?UTF-8?q?ds=20qualifiers=20from=20pointer=20target=20type?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30341 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libswscale/swscale.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3