Mercurial > libavformat.hg
changeset 6098:47759a2966f6 libavformat
Support AVFMT_FLAG_IGNIDX in gxf demuxer.
author | reimar |
---|---|
date | Sun, 06 Jun 2010 10:51:06 +0000 |
parents | 2f4b67897701 |
children | ed24da0b0cee |
files | gxf.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/gxf.c Sat Jun 05 23:13:52 2010 +0000 +++ b/gxf.c Sun Jun 06 10:51:06 2010 +0000 @@ -237,6 +237,10 @@ 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;