changeset 5243:13dd683f3ff2 libavformat

Fix playback of strange AVI files with stray LIST. sample: http://samples.mplayerhq.hu/avi/AV36_1.AVI fix suggested by Michael
author aurel
date Thu, 01 Oct 2009 10:24:02 +0000
parents c6eeec0f9b40
children 8c0b5c6d0f17
files avidec.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/avidec.c	Wed Sep 30 18:27:39 2009 +0000
+++ b/avidec.c	Thu Oct 01 10:24:02 2009 +0000
@@ -830,6 +830,12 @@
             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)