diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2006-07-07 08:56:05 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2006-07-07 08:56:05 +0000 |
commit | e7cc4b52f9d395c47b4fae43e2ec43176a8bf394 (patch) | |
tree | ba3eef88f6311205be7d58a2df91564e713b32d5 /libavformat | |
parent | 421de2575bf543a3509dc85df666d5f38299ba55 (diff) | |
download | ffmpeg-e7cc4b52f9d395c47b4fae43e2ec43176a8bf394.tar.gz |
skip others fourcc, if present
Originally committed as revision 5654 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/mov.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c index b5325afee7..29e379b117 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -935,6 +935,12 @@ static int mov_read_stsd(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom) get_be16(pb); /* reserved */ get_be16(pb); /* index */ + if (st->codec->codec_tag) { + /* multiple fourcc, just skip for now */ + url_fskip(pb, size - (url_ftell(pb) - start_pos)); + continue; + } + st->codec->codec_tag = format; id = codec_get_id(mov_audio_tags, format); if (id > 0) { |