[FFmpeg-devel] [PATCH] fix wrong argument type warning in yuv2rgb.c

Benoit Fouet benoit.fouet
Mon Jul 12 10:35:47 CEST 2010


Hi,

On Fri, 9 Jul 2010 16:30:11 +0200 Michael Niedermayer wrote:
> On Thu, Jul 08, 2010 at 11:40:17AM +0200, Benoit Fouet wrote:
> > 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.
> 
> ok with me
> 

Thanks, applied.

Ben



More information about the ffmpeg-devel mailing list