From e7cc4b52f9d395c47b4fae43e2ec43176a8bf394 Mon Sep 17 00:00:00 2001 From: Baptiste Coudurier Date: Fri, 7 Jul 2006 08:56:05 +0000 Subject: [PATCH] skip others fourcc, if present Originally committed as revision 5654 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/mov.c | 6 ++++++ 1 file changed, 6 insertions(+) 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) {