# HG changeset patch # User benoit # Date 1278923720 0 # Node ID 9fb969676b7cf007cc1907bc37088e5110ce56c1 # Parent 0aeac13d3299a2d7be6e2acd7c5b8fb933e07a21 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 *¡Ç diff -r 0aeac13d3299 -r 9fb969676b7c libswscale/yuv2rgb.c --- 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);