changeset 31656:9fb969676b7c

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 *¡Ç
author benoit
date Mon, 12 Jul 2010 08:35:20 +0000
parents 0aeac13d3299
children fa6671a1b8dc
files libswscale/yuv2rgb.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libswscale/yuv2rgb.c	Sun Jul 11 22:34:47 2010 +0000
+++ b/libswscale/yuv2rgb.c	Mon Jul 12 08:35:20 2010 +0000
@@ -595,10 +595,11 @@
     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);