changeset 21568:51a7cbc52102

Respect -noidx in lavf demuxer
author reimar
date Sun, 10 Dec 2006 21:37:00 +0000
parents 3cc80f0855e1
children 685b7a8e6992
files libmpdemux/demux_lavf.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_lavf.c	Sun Dec 10 19:47:24 2006 +0000
+++ b/libmpdemux/demux_lavf.c	Sun Dec 10 21:37:00 2006 +0000
@@ -199,6 +199,8 @@
 
     if (correct_pts)
         avfc->flags |= AVFMT_FLAG_GENPTS;
+    if (index_mode == 0)
+        avfc->flags |= AVFMT_FLAG_IGNIDX;
 
     ap.prealloced_context = 1;
     if(opt_probesize) {