diff options
author | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2010-06-02 19:30:40 +0300 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2010-06-02 19:30:40 +0300 |
commit | 7c4dbb8a20b1c17cfcc87dc48aaeccc4f98415a3 (patch) | |
tree | 12872a832c972d62aedf8061d9769f69862042b2 /libmpdemux | |
parent | 80be936a56199f7affddef546514604dcefcb763 (diff) | |
download | mpv-7c4dbb8a20b1c17cfcc87dc48aaeccc4f98415a3.tar.bz2 mpv-7c4dbb8a20b1c17cfcc87dc48aaeccc4f98415a3.tar.xz |
demux_mkv: enable automatic index generation by default
Change demux_mkv to behave by default as it did with -idx before. The
index generation code in demux_mkv linearly scans the file up to the
seek timestamp (it doesn't read the whole file up front like some
other demuxers do). Doing that is probably a better default for files
with no index than rejecting the seek request and asking user to
specify -idx.
Diffstat (limited to 'libmpdemux')
-rw-r--r-- | libmpdemux/demux_mkv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmpdemux/demux_mkv.c b/libmpdemux/demux_mkv.c index f331960b80..f7f04b72d9 100644 --- a/libmpdemux/demux_mkv.c +++ b/libmpdemux/demux_mkv.c @@ -1770,7 +1770,7 @@ static int demux_mkv_open(demuxer_t *demuxer) demuxer->audio->id = -2; } - if (s->end_pos == 0 || (mkv_d->indexes == NULL && index_mode < 0)) + if (s->end_pos == 0) demuxer->seekable = 0; else { demuxer->movi_start = s->start_pos; |