[FFmpeg-devel] [PATCH] fix wrong argument type warning in yuv2rgb.c
Benoit Fouet
benoit.fouet
Thu Jul 8 11:40:17 CEST 2010
Hi,
here is a patch to $subj.
This fixes:
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 *?
libswscale/yuv2rgb.c:779: 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 *?
libswscale/yuv2rgb.c:780: 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 *?
libswscale/yuv2rgb.c:801: 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 *?
libswscale/yuv2rgb.c:802: 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 *?
libswscale/yuv2rgb.c:803: 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 *?
libswscale/yuv2rgb.c:838: warning: passing argument 4 of ?fill_table? from incompatible pointer type
libswscale/yuv2rgb.c:598: note: expected ?uint8_t *? but argument is of type ?uint32_t *?
libswscale/yuv2rgb.c:839: warning: passing argument 4 of ?fill_table? from incompatible pointer type
libswscale/yuv2rgb.c:598: note: expected ?uint8_t *? but argument is of type ?uint32_t *?
libswscale/yuv2rgb.c:840: warning: passing argument 4 of ?fill_table? from incompatible pointer type
libswscale/yuv2rgb.c:598: note: expected ?uint8_t *? but argument is of type ?uint32_t *?
Please comment.
Index: libswscale/yuv2rgb.c
===================================================================
--- libswscale/yuv2rgb.c (revision 31645)
+++ libswscale/yuv2rgb.c (working copy)
@@ -595,10 +595,11 @@ SwsFunc ff_yuv2rgb_get_func_ptr(SwsConte
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);
--
Ben
More information about the ffmpeg-devel
mailing list