diff --git a/libmpdemux/demux_lavf.c b/libmpdemux/demux_lavf.c index a7e8012159..47d8cfdc2f 100644 --- a/libmpdemux/demux_lavf.c +++ b/libmpdemux/demux_lavf.c @@ -199,6 +199,8 @@ static demuxer_t* demux_open_lavf(demuxer_t *demuxer){ if (correct_pts) avfc->flags |= AVFMT_FLAG_GENPTS; + if (index_mode == 0) + avfc->flags |= AVFMT_FLAG_IGNIDX; ap.prealloced_context = 1; if(opt_probesize) {