aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/avidec.c
diff options
context:
space:
mode:
authorMats Peterson <matsp888@yahoo.com>2016-03-09 23:18:07 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2016-03-10 00:30:39 +0100
commitcaeed0479fca143ed4206f4a8f2c5935f7e5f2a0 (patch)
treefbb9e14676f0b3ba0c7ba59a94e6526aa7a2bdbf /libavformat/avidec.c
parent285fda093732a3dbb81c5bc35d49232febd0e0a9 (diff)
downloadffmpeg-caeed0479fca143ed4206f4a8f2c5935f7e5f2a0.tar.gz
lavf/avidec: Skip xxpc entries in index; fixes trac #5311
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/avidec.c')
-rw-r--r--libavformat/avidec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index eaf842141c..49c97d9f75 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -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;