aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/gxf.c
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2010-06-06 10:51:06 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2010-06-06 10:51:06 +0000
commit48b5a2fa9837849316584e4fa94cbaf5391121da (patch)
treec6505545cb87c993a4d4f0474b5bc6047b55943d /libavformat/gxf.c
parent59b847d3a9ba77df9806dcd0770232e4006537d1 (diff)
downloadffmpeg-48b5a2fa9837849316584e4fa94cbaf5391121da.tar.gz
Support AVFMT_FLAG_IGNIDX in gxf demuxer.
Originally committed as revision 23502 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/gxf.c')
-rw-r--r--libavformat/gxf.c4
1 files changed, 4 insertions, 0 deletions
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;