From 453d28af601ec9cab3d03a89a380f647188cc3dd Mon Sep 17 00:00:00 2001 From: Benoit Fouet Date: Mon, 12 Jul 2010 08:35:20 +0000 Subject: [PATCH] =?utf8?q?Change=20the=20type=20of=20Y=20table=20to=20poin?= =?utf8?q?ter=20to=20void=20in=20fill=5Ftable().=20This=20fixes=20warnings?= =?utf8?q?=20about=20wrong=20type=20being=20used,=20e.g.:=20libswscale/yuv?= =?utf8?q?2rgb.c:=20In=20function=20=E2=80=98ff=5Fyuv2rgb=5Fc=5Finit=5Ftab?= =?utf8?q?les=E2=80=99:=20libswscale/yuv2rgb.c:778:=20warning:=20passing?= =?utf8?q?=20argument=204=20of=20=E2=80=98fill=5Ftable=E2=80=99=20from=20i?= =?utf8?q?ncompatible=20pointer=20type=20libswscale/yuv2rgb.c:598:=20note:?= =?utf8?q?=20expected=20=E2=80=98uint8=5Ft=20*=E2=80=99=20but=20argument?= =?utf8?q?=20is=20of=20type=20=E2=80=98uint16=5Ft=20*=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Originally committed as revision 31722 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale --- libswscale/yuv2rgb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libswscale/yuv2rgb.c b/libswscale/yuv2rgb.c index bd3fb93..77d3d39 100644 --- a/libswscale/yuv2rgb.c +++ b/libswscale/yuv2rgb.c @@ -595,10 +595,11 @@ SwsFunc ff_yuv2rgb_get_func_ptr(SwsContext *c) return NULL; } -static void fill_table(uint8_t* table[256], const int elemsize, const int inc, uint8_t *y_table) +static void fill_table(uint8_t* table[256], const int elemsize, const int inc, void *y_tab) { int i; int64_t cb = 0; + uint8_t *y_table = y_tab; y_table -= elemsize * (inc >> 9); -- 2.7.4