diff rawdec.c @ 8023:76f6a08c9fe6 libavcodec

Fix some icc warnings by using enum PixelFormat instead of int where appropriate.
author cehoyos
date Mon, 13 Oct 2008 07:42:11 +0000
parents 4525dcd81357
children 04423b2f6e0b
line wrap: on
line diff
--- a/rawdec.c	Mon Oct 13 00:10:53 2008 +0000
+++ b/rawdec.c	Mon Oct 13 07:42:11 2008 +0000
@@ -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)