diff options
author | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2010-11-26 16:56:05 +0200 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2010-11-26 16:58:10 +0200 |
commit | 7001c2d994457e49b6c330319987649eadbdcb80 (patch) | |
tree | 888d6a91caa80addaa215dd2f5b94fc022d55f2b /defaultopts.c | |
parent | 90d8bbb2257d2638f98b8c6fcfcabc778d9696ff (diff) | |
download | mpv-7001c2d994457e49b6c330319987649eadbdcb80.tar.bz2 mpv-7001c2d994457e49b6c330319987649eadbdcb80.tar.xz |
core: ordered chapters: add heuristic for merging inaccurate chapters
Some Matroska files have inaccurate ordered chapter endpoints, and so
parts where one chapter should end and the next begin at the same
timestamp were not merged. This resulted in an unnecessary seek over a
minimal distance. Add a heuristic to merge parts with a minimal gap or
overlap between them.
Based on patch by Hector Martin <hector@marcansoft.com>.
Diffstat (limited to 'defaultopts.c')
-rw-r--r-- | defaultopts.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/defaultopts.c b/defaultopts.c index e8f842cd47..aabe0effe1 100644 --- a/defaultopts.c +++ b/defaultopts.c @@ -23,6 +23,7 @@ void set_default_mplayer_options(struct MPOpts *opts) .stream_dump_name = "stream.dump", .loop_times = -1, .ordered_chapters = 1, + .chapter_merge_threshold = 100, .stream_cache_min_percent = 20.0, .stream_cache_seek_min_percent = 50.0, .chapterrange = {-1, -1}, |