Support AVFMT_FLAG_IGNIDX in gxf demuxer.

Originally committed as revision 23502 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Reimar Döffinger 2010-06-06 10:51:06 +00:00
parent 59b847d3a9
commit 48b5a2fa98

View File

@ -237,6 +237,10 @@ static void gxf_read_index(AVFormatContext *s, int pkt_len) {
uint32_t map_cnt = get_le32(pb); uint32_t map_cnt = get_le32(pb);
int i; int i;
pkt_len -= 8; pkt_len -= 8;
if (s->flags & AVFMT_FLAG_IGNIDX) {
url_fskip(pb, pkt_len);
return;
}
if (map_cnt > 1000) { if (map_cnt > 1000) {
av_log(s, AV_LOG_ERROR, "too many index entries %u (%x)\n", map_cnt, map_cnt); av_log(s, AV_LOG_ERROR, "too many index entries %u (%x)\n", map_cnt, map_cnt);
map_cnt = 1000; map_cnt = 1000;