Mercurial > libavformat.hg
comparison gxf.c @ 6098:47759a2966f6 libavformat
Support AVFMT_FLAG_IGNIDX in gxf demuxer.
author | reimar |
---|---|
date | Sun, 06 Jun 2010 10:51:06 +0000 |
parents | 536e5527c1e0 |
children | ccb05424c391 |
comparison
equal
deleted
inserted
replaced
6097:2f4b67897701 | 6098:47759a2966f6 |
---|---|
235 AVStream *st = s->streams[0]; | 235 AVStream *st = s->streams[0]; |
236 uint32_t fields_per_map = get_le32(pb); | 236 uint32_t fields_per_map = get_le32(pb); |
237 uint32_t map_cnt = get_le32(pb); | 237 uint32_t map_cnt = get_le32(pb); |
238 int i; | 238 int i; |
239 pkt_len -= 8; | 239 pkt_len -= 8; |
240 if (s->flags & AVFMT_FLAG_IGNIDX) { | |
241 url_fskip(pb, pkt_len); | |
242 return; | |
243 } | |
240 if (map_cnt > 1000) { | 244 if (map_cnt > 1000) { |
241 av_log(s, AV_LOG_ERROR, "too many index entries %u (%x)\n", map_cnt, map_cnt); | 245 av_log(s, AV_LOG_ERROR, "too many index entries %u (%x)\n", map_cnt, map_cnt); |
242 map_cnt = 1000; | 246 map_cnt = 1000; |
243 } | 247 } |
244 if (pkt_len < 4 * map_cnt) { | 248 if (pkt_len < 4 * map_cnt) { |