avformat/avidec: fix demuxing of all keyframes of sample 200707170736151.avi
authorPaul B Mahol <onemda@gmail.com>
Tue, 14 Aug 2018 18:06:32 +0000 (20:06 +0200)
committerPaul B Mahol <onemda@gmail.com>
Tue, 21 Aug 2018 10:14:44 +0000 (12:14 +0200)
libavformat/avidec.c

index bafe1dc..3f07479 100644 (file)
@@ -1231,6 +1231,11 @@ start_sync:
             goto 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;
 
         if (avi->dv_demux && n != 0)
             continue;