From 453d28af601ec9cab3d03a89a380f647188cc3dd Mon Sep 17 00:00:00 2001 From: Benoit Fouet Date: Mon, 12 Jul 2010 08:35:20 +0000 Subject: [PATCH] =?UTF-8?q?Change=20the=20type=20of=20Y=20table=20to=20poi?= =?UTF-8?q?nter=20to=20void=20in=20fill=5Ftable().=20This=20fixes=20warnin?= =?UTF-8?q?gs=20about=20wrong=20type=20being=20used,=20e.g.:=20libswscale/?= =?UTF-8?q?yuv2rgb.c:=20In=20function=20=E2=80=98ff=5Fyuv2rgb=5Fc=5Finit?= =?UTF-8?q?=5Ftables=E2=80=99:=20libswscale/yuv2rgb.c:778:=20warning:=20pa?= =?UTF-8?q?ssing=20argument=204=20of=20=E2=80=98fill=5Ftable=E2=80=99=20fr?= =?UTF-8?q?om=20incompatible=20pointer=20type=20libswscale/yuv2rgb.c:598:?= =?UTF-8?q?=20note:=20expected=20=E2=80=98uint8=5Ft=20*=E2=80=99=20but=20a?= =?UTF-8?q?rgument=20is=20of=20type=20=E2=80=98uint16=5Ft=20*=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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 bd3fb93c3a..77d3d399da 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);