From 48b5a2fa9837849316584e4fa94cbaf5391121da Mon Sep 17 00:00:00 2001 From: Reimar Döffinger Date: Sun, 6 Jun 2010 10:51:06 +0000 Subject: Support AVFMT_FLAG_IGNIDX in gxf demuxer. Originally committed as revision 23502 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/gxf.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libavformat/gxf.c') diff --git a/libavformat/gxf.c b/libavformat/gxf.c index ea8a2fff7f..3798bb7e89 100644 --- a/libavformat/gxf.c +++ b/libavformat/gxf.c @@ -237,6 +237,10 @@ static void gxf_read_index(AVFormatContext *s, int pkt_len) { uint32_t map_cnt = get_le32(pb); int i; pkt_len -= 8; + if (s->flags & AVFMT_FLAG_IGNIDX) { + url_fskip(pb, pkt_len); + return; + } if (map_cnt > 1000) { av_log(s, AV_LOG_ERROR, "too many index entries %u (%x)\n", map_cnt, map_cnt); map_cnt = 1000; -- cgit v1.2.3