You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
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
This commit is contained in:
@@ -595,10 +595,11 @@ SwsFunc ff_yuv2rgb_get_func_ptr(SwsContext *c)
|
|||||||
return NULL;
|
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;
|
int i;
|
||||||
int64_t cb = 0;
|
int64_t cb = 0;
|
||||||
|
uint8_t *y_table = y_tab;
|
||||||
|
|
||||||
y_table -= elemsize * (inc >> 9);
|
y_table -= elemsize * (inc >> 9);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user