[MPlayer-cvslog] r20230 - trunk/libmpdemux/demux_mkv.c

reimar subversion at mplayerhq.hu
Sun Oct 15 14:48:18 CEST 2006


Author: reimar
Date: Sun Oct 15 14:48:18 2006
New Revision: 20230

Modified:
   trunk/libmpdemux/demux_mkv.c

Log:
Implement -noidx since index can use quite a bit of memory, esp. when using valgrind.


Modified: trunk/libmpdemux/demux_mkv.c
==============================================================================
--- trunk/libmpdemux/demux_mkv.c	(original)
+++ trunk/libmpdemux/demux_mkv.c	Sun Oct 15 14:48:18 2006
@@ -1263,6 +1263,8 @@
   return 0;
 }
 
+extern int index_mode;
+
 static int
 demux_mkv_read_cues (demuxer_t *demuxer)
 {
@@ -1272,6 +1274,10 @@
   off_t off;
   int i, il;
 
+  if (index_mode == 0) {
+    ebml_read_skip (s, NULL);
+    return 0;
+  }
   off = stream_tell (s);
   for (i=0; i<mkv_d->parsed_cues_num; i++)
     if (mkv_d->parsed_cues[i] == off)



More information about the MPlayer-cvslog mailing list