Replace some occurrences of 0 with CODEC_ID_NONE.

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

Originally committed as revision 13135 to svn://svn.ffmpeg.org/ffmpeg/trunk
pull/126/head
Carl Eugen Hoyos 17 years ago
parent d9481eb7f3
commit d9133126d3
  1. 2
      libavformat/img2.c
  2. 4
      libavformat/mp3.c
  3. 20
      libavformat/raw.c

@ -68,7 +68,7 @@ static const IdStrMap img_tags[] = {
{ CODEC_ID_SUNRAST , "im8"},
{ CODEC_ID_SUNRAST , "im24"},
{ CODEC_ID_SUNRAST , "sunras"},
{0, NULL}
{ CODEC_ID_NONE , NULL}
};
static int sizes[][2] = {

@ -668,7 +668,7 @@ AVOutputFormat mp2_muxer = {
#endif
0,
CODEC_ID_MP2,
0,
CODEC_ID_NONE,
NULL,
mp3_write_packet,
mp3_write_trailer,
@ -682,7 +682,7 @@ AVOutputFormat mp3_muxer = {
"mp3",
0,
CODEC_ID_MP3,
0,
CODEC_ID_NONE,
mp3_write_header,
mp3_write_packet,
mp3_write_trailer,

@ -463,7 +463,7 @@ AVOutputFormat flac_muxer = {
"flac",
0,
CODEC_ID_FLAC,
0,
CODEC_ID_NONE,
flac_write_header,
raw_write_packet,
.flags= AVFMT_NOTIMESTAMPS,
@ -493,7 +493,7 @@ AVOutputFormat ac3_muxer = {
"ac3",
0,
CODEC_ID_AC3,
0,
CODEC_ID_NONE,
NULL,
raw_write_packet,
.flags= AVFMT_NOTIMESTAMPS,
@ -506,7 +506,7 @@ AVOutputFormat dts_muxer = {
"dts",
0,
CODEC_ID_DTS,
0,
CODEC_ID_NONE,
NULL,
raw_write_packet,
.flags= AVFMT_NOTIMESTAMPS,
@ -533,7 +533,7 @@ AVOutputFormat dirac_muxer = {
NULL,
"drc",
0,
0,
CODEC_ID_NONE,
CODEC_ID_DIRAC,
NULL,
raw_write_packet,
@ -615,7 +615,7 @@ AVOutputFormat h261_muxer = {
"video/x-h261",
"h261",
0,
0,
CODEC_ID_NONE,
CODEC_ID_H261,
NULL,
raw_write_packet,
@ -643,7 +643,7 @@ AVOutputFormat h263_muxer = {
"video/x-h263",
"h263",
0,
0,
CODEC_ID_NONE,
CODEC_ID_H263,
NULL,
raw_write_packet,
@ -726,7 +726,7 @@ AVOutputFormat mpeg1video_muxer = {
"video/x-mpeg",
"mpg,mpeg,m1v",
0,
0,
CODEC_ID_NONE,
CODEC_ID_MPEG1VIDEO,
NULL,
raw_write_packet,
@ -741,7 +741,7 @@ AVOutputFormat mpeg2video_muxer = {
NULL,
"m2v",
0,
0,
CODEC_ID_NONE,
CODEC_ID_MPEG2VIDEO,
NULL,
raw_write_packet,
@ -782,7 +782,7 @@ AVOutputFormat mjpeg_muxer = {
"video/x-mjpeg",
"mjpg,mjpeg",
0,
0,
CODEC_ID_NONE,
CODEC_ID_MJPEG,
NULL,
raw_write_packet,
@ -827,7 +827,7 @@ AVOutputFormat pcm_ ## name ## _muxer = {\
ext,\
0,\
codec,\
0,\
CODEC_ID_NONE,\
NULL,\
raw_write_packet,\
.flags= AVFMT_NOTIMESTAMPS,\

Loading…
Cancel
Save