Commit 48b5a2fa authored by Reimar Döffinger's avatar Reimar Döffinger

Support AVFMT_FLAG_IGNIDX in gxf demuxer.

Originally committed as revision 23502 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 59b847d3
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment