Commit b7fbcd53 authored by reimar's avatar reimar

Support AVFMT_FLAG_IGNIDX in gxf demuxer.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@23502 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 4f620a2d
......@@ -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