[SCM] libav/experimental: Fix playback of strange AVI files with stray LIST. sample: http://samples.mplayerhq.hu/avi/AV36_1.AVI fix suggested by Michael

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:52:18 UTC 2013


The following commit has been merged in the experimental branch:
commit e471e3c4a513dcddde0daa6591b450b366fa131f
Author: Aurelien Jacobs <aurel at gnuage.org>
Date:   Thu Oct 1 10:24:02 2009 +0000

    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

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)

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list