summaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorAurelien Jacobs <aurel@gnuage.org>2009-10-01 10:24:02 +0000
committerAurelien Jacobs <aurel@gnuage.org>2009-10-01 10:24:02 +0000
commite471e3c4a513dcddde0daa6591b450b366fa131f (patch)
tree48c0bde0be059971c45955d7b81546552d48da87 /libavformat
parent2499f4e09e1b23fec7891697cce2656ce3915767 (diff)
downloadffmpeg-streaming-e471e3c4a513dcddde0daa6591b450b366fa131f.zip
ffmpeg-streaming-e471e3c4a513dcddde0daa6591b450b366fa131f.tar.gz
Fix playback of strange AVI files with stray LIST.
sample: http://samples.mplayerhq.hu/avi/AV36_1.AVI fix suggested by Michael Originally committed as revision 20118 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/avidec.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index 6f2bad1..30c1eee 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -830,6 +830,12 @@ resync:
goto resync;
}
+ //parse stray LIST
+ if(d[0] == 'L' && d[1] == 'I' && d[2] == 'S' && d[3] == 'T'){
+ url_fskip(pb, 4);
+ goto resync;
+ }
+
n= get_stream_idx(d);
if(!((i-avi->last_pkt_pos)&1) && get_stream_idx(d+1) < s->nb_streams)
OpenPOWER on IntegriCloud