# HG changeset patch # User cehoyos # Date 1255704366 0 # Node ID 0d5653941bf9522023a6d543002689bd06d5bbf1 # Parent 269fd2e634ba238ed7dc3edcdc5040f13f200d6e Make AVCodecTag.id enum CodecID and use CODEC_ID_NONE instead of 0. diff -r 269fd2e634ba -r 0d5653941bf9 au.c --- a/au.c Fri Oct 16 10:04:35 2009 +0000 +++ b/au.c Fri Oct 16 14:46:06 2009 +0000 @@ -44,7 +44,7 @@ { CODEC_ID_PCM_F32BE, 6 }, { CODEC_ID_PCM_F64BE, 7 }, { CODEC_ID_PCM_ALAW, 27 }, - { 0, 0 }, + { CODEC_ID_NONE, 0 }, }; #if CONFIG_AU_MUXER diff -r 269fd2e634ba -r 0d5653941bf9 caf.c --- a/caf.c Fri Oct 16 10:04:35 2009 +0000 +++ b/caf.c Fri Oct 16 14:46:06 2009 +0000 @@ -54,5 +54,5 @@ /*{ MPEG4CELP MKBETAG('c','e','l','p') },*/ /*{ MPEG4HVXC MKBETAG('h','v','x','c') },*/ /*{ MPEG4TwinVQ MKBETAG('t','w','v','q') },*/ - { 0, 0 }, + { CODEC_ID_NONE, 0 }, }; diff -r 269fd2e634ba -r 0d5653941bf9 gxfenc.c --- a/gxfenc.c Fri Oct 16 10:04:35 2009 +0000 +++ b/gxfenc.c Fri Oct 16 14:46:06 2009 +0000 @@ -93,7 +93,7 @@ { CODEC_ID_MPEG2VIDEO, 20 }, /* MPEG HD */ { CODEC_ID_MPEG1VIDEO, 22 }, /* NTSC */ { CODEC_ID_MPEG1VIDEO, 23 }, /* PAL */ - { 0, 0 }, + { CODEC_ID_NONE, 0 }, }; #define SERVER_PATH "EXT:/PDR/default/" diff -r 269fd2e634ba -r 0d5653941bf9 isom.c --- a/isom.c Fri Oct 16 10:04:35 2009 +0000 +++ b/isom.c Fri Oct 16 14:46:06 2009 +0000 @@ -54,7 +54,7 @@ { CODEC_ID_VORBIS , 0xDD }, /* non standard, gpac uses it */ { CODEC_ID_DVD_SUBTITLE, 0xE0 }, /* non standard, see unsupported-embedded-subs-2.mp4 */ { CODEC_ID_QCELP , 0xE1 }, - { 0, 0 }, + { CODEC_ID_NONE , 0 }, }; const AVCodecTag codec_movvideo_tags[] = { diff -r 269fd2e634ba -r 0d5653941bf9 nsvdec.c --- a/nsvdec.c Fri Oct 16 10:04:35 2009 +0000 +++ b/nsvdec.c Fri Oct 16 14:46:06 2009 +0000 @@ -201,7 +201,7 @@ */ { CODEC_ID_MPEG4, MKTAG('X', 'V', 'I', 'D') }, /* cf sample xvid decoder from nsv_codec_sdk.zip */ { CODEC_ID_RAWVIDEO, MKTAG('R', 'G', 'B', '3') }, - { 0, 0 }, + { CODEC_ID_NONE, 0 }, }; static const AVCodecTag nsv_codec_audio_tags[] = { @@ -210,7 +210,7 @@ { CODEC_ID_AAC, MKTAG('A', 'A', 'C', 'P') }, { CODEC_ID_SPEEX, MKTAG('S', 'P', 'X', ' ') }, { CODEC_ID_PCM_U16LE, MKTAG('P', 'C', 'M', ' ') }, - { 0, 0 }, + { CODEC_ID_NONE, 0 }, }; //static int nsv_load_index(AVFormatContext *s); diff -r 269fd2e634ba -r 0d5653941bf9 riff.c --- a/riff.c Fri Oct 16 10:04:35 2009 +0000 +++ b/riff.c Fri Oct 16 14:46:06 2009 +0000 @@ -271,7 +271,7 @@ { CODEC_ID_PCM_S16LE, MKTAG('R', 'A', 'W', 'A') }, { CODEC_ID_MP3, MKTAG('L', 'A', 'M', 'E') }, { CODEC_ID_MP3, MKTAG('M', 'P', '3', ' ') }, - { 0, 0 }, + { CODEC_ID_NONE, 0 }, }; #if CONFIG_MUXERS diff -r 269fd2e634ba -r 0d5653941bf9 riff.h --- a/riff.h Fri Oct 16 10:04:35 2009 +0000 +++ b/riff.h Fri Oct 16 14:46:06 2009 +0000 @@ -35,7 +35,7 @@ void ff_end_tag(ByteIOContext *pb, int64_t start); typedef struct AVCodecTag { - int id; + enum CodecID id; unsigned int tag; } AVCodecTag; diff -r 269fd2e634ba -r 0d5653941bf9 swf.h --- a/swf.h Fri Oct 16 10:04:35 2009 +0000 +++ b/swf.h Fri Oct 16 14:46:06 2009 +0000 @@ -81,7 +81,7 @@ static const AVCodecTag swf_codec_tags[] = { {CODEC_ID_FLV1, 0x02}, {CODEC_ID_VP6F, 0x04}, - {0, 0}, + {CODEC_ID_NONE, 0}, }; static const AVCodecTag swf_audio_codec_tags[] = { @@ -90,7 +90,7 @@ {CODEC_ID_MP3, 0x02}, {CODEC_ID_PCM_S16LE, 0x03}, //{CODEC_ID_NELLYMOSER, 0x06}, - {0, 0}, + {CODEC_ID_NONE, 0}, }; #endif /* AVFORMAT_SWF_H */ diff -r 269fd2e634ba -r 0d5653941bf9 voc.c --- a/voc.c Fri Oct 16 10:04:35 2009 +0000 +++ b/voc.c Fri Oct 16 14:46:06 2009 +0000 @@ -32,5 +32,5 @@ {CODEC_ID_PCM_ALAW, 0x06}, {CODEC_ID_PCM_MULAW, 0x07}, {CODEC_ID_ADPCM_CT, 0x0200}, - {0, 0}, + {CODEC_ID_NONE, 0}, };