[FFmpeg-devel] [PATCH]Silence new warnings in libswscale

Carl Eugen Hoyos cehoyos
Thu Oct 9 02:22:59 CEST 2008


Attached patch silences four warnings when compiling swscale.c with icc.
Tested with gcc 4.2.1, gcc 4.3.2 and icc.

Carl Eugen
-------------- next part --------------
Index: libswscale/swscale.c
--- libswscale/swscale.c	(Revision 27731)
+++ libswscale/swscale.c	(Arbeitskopie)
@@ -1716,8 +1716,8 @@
 static int pal2rgbWrapper(SwsContext *c, uint8_t* src[], int srcStride[], int srcSliceY,
                           int srcSliceH, uint8_t* dst[], int dstStride[]){
-    const int srcFormat= c->srcFormat;
-    const int dstFormat= c->dstFormat;
+    const enum PixelFormat srcFormat= c->srcFormat;
+    const enum PixelFormat dstFormat= c->dstFormat;
     void (*conv)(const uint8_t *src, uint8_t *dst, long num_pixels,
                  const uint8_t *palette)=NULL;
     int i;

More information about the ffmpeg-devel mailing list