changeset 3289:811c78fac294 libavformat

Replace some occurrences of 0 with CODEC_ID_NONE. Fixes icc warning #188: enumerated type mixed with another type
author cehoyos
date Mon, 12 May 2008 10:30:40 +0000
parents b8f57813338a
children fa502e142b44
files img2.c mp3.c raw.c
diffstat 3 files changed, 13 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/img2.c	Mon May 12 01:17:00 2008 +0000
+++ b/img2.c	Mon May 12 10:30:40 2008 +0000
@@ -68,7 +68,7 @@
     { CODEC_ID_SUNRAST   , "im8"},
     { CODEC_ID_SUNRAST   , "im24"},
     { CODEC_ID_SUNRAST   , "sunras"},
-    {0, NULL}
+    { CODEC_ID_NONE      , NULL}
 };
 
 static int sizes[][2] = {
--- a/mp3.c	Mon May 12 01:17:00 2008 +0000
+++ b/mp3.c	Mon May 12 10:30:40 2008 +0000
@@ -668,7 +668,7 @@
 #endif
     0,
     CODEC_ID_MP2,
-    0,
+    CODEC_ID_NONE,
     NULL,
     mp3_write_packet,
     mp3_write_trailer,
@@ -682,7 +682,7 @@
     "mp3",
     0,
     CODEC_ID_MP3,
-    0,
+    CODEC_ID_NONE,
     mp3_write_header,
     mp3_write_packet,
     mp3_write_trailer,
--- a/raw.c	Mon May 12 01:17:00 2008 +0000
+++ b/raw.c	Mon May 12 10:30:40 2008 +0000
@@ -463,7 +463,7 @@
     "flac",
     0,
     CODEC_ID_FLAC,
-    0,
+    CODEC_ID_NONE,
     flac_write_header,
     raw_write_packet,
     .flags= AVFMT_NOTIMESTAMPS,
@@ -493,7 +493,7 @@
     "ac3",
     0,
     CODEC_ID_AC3,
-    0,
+    CODEC_ID_NONE,
     NULL,
     raw_write_packet,
     .flags= AVFMT_NOTIMESTAMPS,
@@ -506,7 +506,7 @@
     "dts",
     0,
     CODEC_ID_DTS,
-    0,
+    CODEC_ID_NONE,
     NULL,
     raw_write_packet,
     .flags= AVFMT_NOTIMESTAMPS,
@@ -533,7 +533,7 @@
     NULL,
     "drc",
     0,
-    0,
+    CODEC_ID_NONE,
     CODEC_ID_DIRAC,
     NULL,
     raw_write_packet,
@@ -615,7 +615,7 @@
     "video/x-h261",
     "h261",
     0,
-    0,
+    CODEC_ID_NONE,
     CODEC_ID_H261,
     NULL,
     raw_write_packet,
@@ -643,7 +643,7 @@
     "video/x-h263",
     "h263",
     0,
-    0,
+    CODEC_ID_NONE,
     CODEC_ID_H263,
     NULL,
     raw_write_packet,
@@ -726,7 +726,7 @@
     "video/x-mpeg",
     "mpg,mpeg,m1v",
     0,
-    0,
+    CODEC_ID_NONE,
     CODEC_ID_MPEG1VIDEO,
     NULL,
     raw_write_packet,
@@ -741,7 +741,7 @@
     NULL,
     "m2v",
     0,
-    0,
+    CODEC_ID_NONE,
     CODEC_ID_MPEG2VIDEO,
     NULL,
     raw_write_packet,
@@ -782,7 +782,7 @@
     "video/x-mjpeg",
     "mjpg,mjpeg",
     0,
-    0,
+    CODEC_ID_NONE,
     CODEC_ID_MJPEG,
     NULL,
     raw_write_packet,
@@ -827,7 +827,7 @@
     ext,\
     0,\
     codec,\
-    0,\
+    CODEC_ID_NONE,\
     NULL,\
     raw_write_packet,\
     .flags= AVFMT_NOTIMESTAMPS,\