summaryrefslogtreecommitdiffstats
path: root/libmpdemux/demux_mkv.c
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2010-06-02 19:30:40 +0300
committerUoti Urpala <uau@glyph.nonexistent.invalid>2010-06-02 19:30:40 +0300
commit7c4dbb8a20b1c17cfcc87dc48aaeccc4f98415a3 (patch)
tree12872a832c972d62aedf8061d9769f69862042b2 /libmpdemux/demux_mkv.c
parent80be936a56199f7affddef546514604dcefcb763 (diff)
downloadmpv-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/demux_mkv.c')
-rw-r--r--libmpdemux/demux_mkv.c2
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;