diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2007-01-21 12:08:31 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2007-01-21 12:08:31 +0000 |
commit | 6c77805fc84a63b74e5025b4d7eeea24c8138cf3 (patch) | |
tree | 740e6a723ac8d45f686f7842068d65f337f4b549 /libavformat/riff.c | |
parent | 5484dad7f6122a4d4dbc28e867a8c71d22ba2297 (diff) | |
download | ffmpeg-6c77805fc84a63b74e5025b4d7eeea24c8138cf3.tar.gz |
get rid of the [4] limitation of codec tag lists
Originally committed as revision 7596 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/riff.c')
-rw-r--r-- | libavformat/riff.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/riff.c b/libavformat/riff.c index 368028af9b..08371a3aeb 100644 --- a/libavformat/riff.c +++ b/libavformat/riff.c @@ -233,7 +233,7 @@ enum CodecID codec_get_id(const AVCodecTag *tags, unsigned int tag) unsigned int av_codec_get_tag(const AVCodecTag *tags[4], enum CodecID id) { int i; - for(i=0; i<4 && tags[i]; i++){ + for(i=0; tags && tags[i]; i++){ int tag= codec_get_tag(tags[i], id); if(tag) return tag; } @@ -243,7 +243,7 @@ unsigned int av_codec_get_tag(const AVCodecTag *tags[4], enum CodecID id) enum CodecID av_codec_get_id(const AVCodecTag *tags[4], unsigned int tag) { int i; - for(i=0; i<4 && tags[i]; i++){ + for(i=0; tags && tags[i]; i++){ enum CodecID id= codec_get_id(tags[i], tag); if(id!=CODEC_ID_NONE) return id; } |