[FFmpeg-cvslog] avformat/avidec: fix demuxing of all keyframes of sample 200707170736151.avi

Paul B Mahol git at videolan.org
Tue Aug 21 13:17:16 EEST 2018


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Tue Aug 14 20:06:32 2018 +0200| [6972dae5a494fb69836343ea0e8d430769177c5d] | committer: Paul B Mahol

avformat/avidec: fix demuxing of all keyframes of sample 200707170736151.avi

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6972dae5a494fb69836343ea0e8d430769177c5d
---

 libavformat/avidec.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index bafe1dc8da..3f074795a7 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -1231,6 +1231,11 @@ start_sync:
             goto start_sync;
         }
 
+        if (d[2] == 'w' && d[3] == 'c' && n < s->nb_streams) {
+            avio_skip(pb, 16 * 3 + 8);
+            goto start_sync;
+        }
+
         if (avi->dv_demux && n != 0)
             continue;
 



More information about the ffmpeg-cvslog mailing list