mirror of
https://github.com/mpv-player/mpv
synced 2025-04-01 23:00:41 +00:00
Implement -noidx since index can use quite a bit of memory, esp. when using valgrind.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20230 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
4b1dd57710
commit
2ec8dc1fec
@ -1263,6 +1263,8 @@ demux_mkv_read_tracks (demuxer_t *demuxer)
|
||||
return 0;
|
||||
}
|
||||
|
||||
extern int index_mode;
|
||||
|
||||
static int
|
||||
demux_mkv_read_cues (demuxer_t *demuxer)
|
||||
{
|
||||
@ -1272,6 +1274,10 @@ demux_mkv_read_cues (demuxer_t *demuxer)
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user