mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-26 17:32:06 +00:00
Support AVFMT_FLAG_IGNIDX in gxf demuxer.
Originally committed as revision 23502 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
59b847d3a9
commit
48b5a2fa98
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user