[FFmpeg-cvslog] lavf/avidec: Skip xxpc entries in index; fixes trac #5311
Mats Peterson
git at videolan.org
Thu Mar 10 00:31:22 CET 2016
ffmpeg | branch: master | Mats Peterson <matsp888 at yahoo.com> | Wed Mar 9 23:18:07 2016 +0100| [caeed0479fca143ed4206f4a8f2c5935f7e5f2a0] | committer: Michael Niedermayer
lavf/avidec: Skip xxpc entries in index; fixes trac #5311
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=caeed0479fca143ed4206f4a8f2c5935f7e5f2a0
---
libavformat/avidec.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index eaf8421..49c97d9 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;
More information about the ffmpeg-cvslog
mailing list