Commit 3a9fdb3a authored by cehoyos's avatar cehoyos

Replace some occurrences of 0 with CODEC_ID_NONE.

Fixes icc warning #188: enumerated type mixed with another type


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13135 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent dafe1463
...@@ -68,7 +68,7 @@ static const IdStrMap img_tags[] = { ...@@ -68,7 +68,7 @@ static const IdStrMap img_tags[] = {
{ CODEC_ID_SUNRAST , "im8"}, { CODEC_ID_SUNRAST , "im8"},
{ CODEC_ID_SUNRAST , "im24"}, { CODEC_ID_SUNRAST , "im24"},
{ CODEC_ID_SUNRAST , "sunras"}, { CODEC_ID_SUNRAST , "sunras"},
{0, NULL} { CODEC_ID_NONE , NULL}
}; };
static int sizes[][2] = { static int sizes[][2] = {
......
...@@ -668,7 +668,7 @@ AVOutputFormat mp2_muxer = { ...@@ -668,7 +668,7 @@ AVOutputFormat mp2_muxer = {
#endif #endif
0, 0,
CODEC_ID_MP2, CODEC_ID_MP2,
0, CODEC_ID_NONE,
NULL, NULL,
mp3_write_packet, mp3_write_packet,
mp3_write_trailer, mp3_write_trailer,
...@@ -682,7 +682,7 @@ AVOutputFormat mp3_muxer = { ...@@ -682,7 +682,7 @@ AVOutputFormat mp3_muxer = {
"mp3", "mp3",
0, 0,
CODEC_ID_MP3, CODEC_ID_MP3,
0, CODEC_ID_NONE,
mp3_write_header, mp3_write_header,
mp3_write_packet, mp3_write_packet,
mp3_write_trailer, mp3_write_trailer,
......
...@@ -463,7 +463,7 @@ AVOutputFormat flac_muxer = { ...@@ -463,7 +463,7 @@ AVOutputFormat flac_muxer = {
"flac", "flac",
0, 0,
CODEC_ID_FLAC, CODEC_ID_FLAC,
0, CODEC_ID_NONE,
flac_write_header, flac_write_header,
raw_write_packet, raw_write_packet,
.flags= AVFMT_NOTIMESTAMPS, .flags= AVFMT_NOTIMESTAMPS,
...@@ -493,7 +493,7 @@ AVOutputFormat ac3_muxer = { ...@@ -493,7 +493,7 @@ AVOutputFormat ac3_muxer = {
"ac3", "ac3",
0, 0,
CODEC_ID_AC3, CODEC_ID_AC3,
0, CODEC_ID_NONE,
NULL, NULL,
raw_write_packet, raw_write_packet,
.flags= AVFMT_NOTIMESTAMPS, .flags= AVFMT_NOTIMESTAMPS,
...@@ -506,7 +506,7 @@ AVOutputFormat dts_muxer = { ...@@ -506,7 +506,7 @@ AVOutputFormat dts_muxer = {
"dts", "dts",
0, 0,
CODEC_ID_DTS, CODEC_ID_DTS,
0, CODEC_ID_NONE,
NULL, NULL,
raw_write_packet, raw_write_packet,
.flags= AVFMT_NOTIMESTAMPS, .flags= AVFMT_NOTIMESTAMPS,
...@@ -533,7 +533,7 @@ AVOutputFormat dirac_muxer = { ...@@ -533,7 +533,7 @@ AVOutputFormat dirac_muxer = {
NULL, NULL,
"drc", "drc",
0, 0,
0, CODEC_ID_NONE,
CODEC_ID_DIRAC, CODEC_ID_DIRAC,
NULL, NULL,
raw_write_packet, raw_write_packet,
...@@ -615,7 +615,7 @@ AVOutputFormat h261_muxer = { ...@@ -615,7 +615,7 @@ AVOutputFormat h261_muxer = {
"video/x-h261", "video/x-h261",
"h261", "h261",
0, 0,
0, CODEC_ID_NONE,
CODEC_ID_H261, CODEC_ID_H261,
NULL, NULL,
raw_write_packet, raw_write_packet,
...@@ -643,7 +643,7 @@ AVOutputFormat h263_muxer = { ...@@ -643,7 +643,7 @@ AVOutputFormat h263_muxer = {
"video/x-h263", "video/x-h263",
"h263", "h263",
0, 0,
0, CODEC_ID_NONE,
CODEC_ID_H263, CODEC_ID_H263,
NULL, NULL,
raw_write_packet, raw_write_packet,
...@@ -726,7 +726,7 @@ AVOutputFormat mpeg1video_muxer = { ...@@ -726,7 +726,7 @@ AVOutputFormat mpeg1video_muxer = {
"video/x-mpeg", "video/x-mpeg",
"mpg,mpeg,m1v", "mpg,mpeg,m1v",
0, 0,
0, CODEC_ID_NONE,
CODEC_ID_MPEG1VIDEO, CODEC_ID_MPEG1VIDEO,
NULL, NULL,
raw_write_packet, raw_write_packet,
...@@ -741,7 +741,7 @@ AVOutputFormat mpeg2video_muxer = { ...@@ -741,7 +741,7 @@ AVOutputFormat mpeg2video_muxer = {
NULL, NULL,
"m2v", "m2v",
0, 0,
0, CODEC_ID_NONE,
CODEC_ID_MPEG2VIDEO, CODEC_ID_MPEG2VIDEO,
NULL, NULL,
raw_write_packet, raw_write_packet,
...@@ -782,7 +782,7 @@ AVOutputFormat mjpeg_muxer = { ...@@ -782,7 +782,7 @@ AVOutputFormat mjpeg_muxer = {
"video/x-mjpeg", "video/x-mjpeg",
"mjpg,mjpeg", "mjpg,mjpeg",
0, 0,
0, CODEC_ID_NONE,
CODEC_ID_MJPEG, CODEC_ID_MJPEG,
NULL, NULL,
raw_write_packet, raw_write_packet,
...@@ -827,7 +827,7 @@ AVOutputFormat pcm_ ## name ## _muxer = {\ ...@@ -827,7 +827,7 @@ AVOutputFormat pcm_ ## name ## _muxer = {\
ext,\ ext,\
0,\ 0,\
codec,\ codec,\
0,\ CODEC_ID_NONE,\
NULL,\ NULL,\
raw_write_packet,\ raw_write_packet,\
.flags= AVFMT_NOTIMESTAMPS,\ .flags= AVFMT_NOTIMESTAMPS,\
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment