Mercurial > mplayer.hg
changeset 20224:08ee6acd3f6c
Implement -noidx since index can use quite a bit of memory, esp. when using valgrind.
author | reimar |
---|---|
date | Sun, 15 Oct 2006 12:48:18 +0000 |
parents | 3cf137e11d5f |
children | bdd028a5c834 |
files | libmpdemux/demux_mkv.c |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demux_mkv.c Sun Oct 15 12:33:53 2006 +0000 +++ b/libmpdemux/demux_mkv.c Sun Oct 15 12:48:18 2006 +0000 @@ -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)