[FFmpeg-devel] [PATCH]Silence some icc warnings
Carl Eugen Hoyos
cehoyos
Mon Oct 13 00:31:10 CEST 2008
Hi!
Attached patch silences some warnings when compiling libavcodec/raw*.
Ok to apply?
Carl Eugen
-------------- next part --------------
Index: libavcodec/raw.h
===================================================================
--- libavcodec/raw.h (Revision 15601)
+++ libavcodec/raw.h (Arbeitskopie)
@@ -30,7 +30,7 @@
#include "avcodec.h"
typedef struct PixelFormatTag {
- int pix_fmt;
+ enum PixelFormat pix_fmt;
unsigned int fourcc;
} PixelFormatTag;
Index: libavcodec/raw.c
===================================================================
--- libavcodec/raw.c (Revision 15601)
+++ libavcodec/raw.c (Arbeitskopie)
@@ -52,7 +52,7 @@
{ PIX_FMT_UYVY422, MKTAG('2', 'v', 'u', 'y') },
{ PIX_FMT_UYVY422, MKTAG('A', 'V', 'U', 'I') }, /* FIXME merge both fields */
- { -1, 0 },
+ { PIX_FMT_NONE, 0 },
};
unsigned int avcodec_pix_fmt_to_codec_tag(enum PixelFormat fmt)
Index: libavcodec/rawdec.c
===================================================================
--- libavcodec/rawdec.c (Revision 15601)
+++ libavcodec/rawdec.c (Arbeitskopie)
@@ -40,7 +40,7 @@
{ PIX_FMT_RGB555, 16 },
{ PIX_FMT_BGR24, 24 },
{ PIX_FMT_RGB32, 32 },
- { -1, 0 },
+ { PIX_FMT_NONE, 0 },
};
static const PixelFormatTag pixelFormatBpsMOV[] = {
@@ -51,10 +51,10 @@
{ PIX_FMT_BGR555, 16 },
{ PIX_FMT_RGB24, 24 },
{ PIX_FMT_BGR32_1, 32 },
- { -1, 0 },
+ { PIX_FMT_NONE, 0 },
};
-static int findPixelFormat(const PixelFormatTag *tags, unsigned int fourcc)
+static enum PixelFormat findPixelFormat(const PixelFormatTag *tags, unsigned int fourcc)
{
while (tags->pix_fmt >= 0) {
if (tags->fourcc == fourcc)
More information about the ffmpeg-devel
mailing list