lavf/avidec: Skip xxpc entries in index; fixes trac #5311
authorMats Peterson <matsp888@yahoo.com>
Wed, 9 Mar 2016 22:18:07 +0000 (23:18 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 9 Mar 2016 23:30:39 +0000 (00:30 +0100)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/avidec.c

index eaf8421..49c97d9 100644 (file)
@@ -1581,6 +1581,9 @@ static int avi_read_idx1(AVFormatContext *s, int size)
         st  = s->streams[index];
         ast = st->priv_data;
 
+        if ((tag >> 16 & 0xff) == 'p' && (tag >> 24 & 0xff) == 'c')
+            continue;
+
         if (first_packet && first_packet_pos) {
             if (avi->movi_list + 4 != pos || pos + 500 > first_packet_pos)
                 data_offset  = first_packet_pos - pos;