summaryrefslogtreecommitdiffstats
path: root/options.h
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2010-11-26 16:56:05 +0200
committerUoti Urpala <uau@glyph.nonexistent.invalid>2010-11-26 16:58:10 +0200
commit7001c2d994457e49b6c330319987649eadbdcb80 (patch)
tree888d6a91caa80addaa215dd2f5b94fc022d55f2b /options.h
parent90d8bbb2257d2638f98b8c6fcfcabc778d9696ff (diff)
downloadmpv-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 'options.h')
-rw-r--r--options.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/options.h b/options.h
index 992202fda3..66048e77b2 100644
--- a/options.h
+++ b/options.h
@@ -37,6 +37,7 @@ typedef struct MPOpts {
int capture_dump;
int loop_times;
int ordered_chapters;
+ int chapter_merge_threshold;
int quiet;
float stream_cache_min_percent;
float stream_cache_seek_min_percent;