OSDN Git Service

Fix playback of strange AVI files with stray LIST.
authorAurelien Jacobs <aurel@gnuage.org>
Thu, 1 Oct 2009 10:24:02 +0000 (10:24 +0000)
committerAurelien Jacobs <aurel@gnuage.org>
Thu, 1 Oct 2009 10:24:02 +0000 (10:24 +0000)
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

libavformat/avidec.c

index 6f2bad1..30c1eee 100644 (file)
@@ -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)