From 7305d97f04f95e6b6717c5bba5cf6b350824094e Mon Sep 17 00:00:00 2001 From: Maksym Veremeyenko Date: Tue, 25 Aug 2009 09:46:16 +0000 Subject: [PATCH] Do not read index chunks as audio/video data; closes issue 1336. patch by Maksym Veremeyenko, verem m1stereo tv Originally committed as revision 19700 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/avidec.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libavformat/avidec.c b/libavformat/avidec.c index 71235ec47d..7093e9150d 100644 --- a/libavformat/avidec.c +++ b/libavformat/avidec.c @@ -826,6 +826,12 @@ resync: if(!((i-avi->last_pkt_pos)&1) && get_stream_idx(d+1) < s->nb_streams) continue; + //detect ##ix chunk and skip + if(d[2] == 'i' && d[3] == 'x' && n < s->nb_streams){ + url_fskip(pb, size); + goto resync; + } + //parse ##dc/##wb if(n < s->nb_streams){ AVStream *st;