From 6972dae5a494fb69836343ea0e8d430769177c5d Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Tue, 14 Aug 2018 20:06:32 +0200 Subject: avformat/avidec: fix demuxing of all keyframes of sample 200707170736151.avi --- libavformat/avidec.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libavformat/avidec.c') 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; -- cgit v1.2.3