From b9e8186ac3159ac14f6a4efd5f43a410fee34e35 Mon Sep 17 00:00:00 2001 From: reimar Date: Sun, 10 Dec 2006 21:37:00 +0000 Subject: [PATCH] Respect -noidx in lavf demuxer git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21584 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpdemux/demux_lavf.c | 2 ++ 1 file changed, 2 insertions(+) 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) {