summaryrefslogtreecommitdiff
path: root/libswscale/yuv2rgb.c
diff options
context:
space:
mode:
authorBenoit Fouet <benoit.fouet@free.fr>2010-07-12 08:35:20 +0000
committerBenoit Fouet <benoit.fouet@free.fr>2010-07-12 08:35:20 +0000
commit453d28af601ec9cab3d03a89a380f647188cc3dd (patch)
tree7d2d585d711e593208aed9a00d51bc7daa5c5bd9 /libswscale/yuv2rgb.c
parentfaa26db28bbe60e9adb3235905177fb6bbcc7efe (diff)
Change the type of Y table to pointer to void in fill_table().
This fixes warnings about wrong type being used, e.g.: libswscale/yuv2rgb.c: In function ‘ff_yuv2rgb_c_init_tables’: libswscale/yuv2rgb.c:778: warning: passing argument 4 of ‘fill_table’ from incompatible pointer type libswscale/yuv2rgb.c:598: note: expected ‘uint8_t *’ but argument is of type ‘uint16_t *’ Originally committed as revision 31722 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Diffstat (limited to 'libswscale/yuv2rgb.c')
-rw-r--r--libswscale/yuv2rgb.c3
1 files changed, 2 insertions, 1 deletions
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);