summaryrefslogtreecommitdiffstats
path: root/cfg-mplayer.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 /cfg-mplayer.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 'cfg-mplayer.h')
-rw-r--r--cfg-mplayer.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cfg-mplayer.h b/cfg-mplayer.h
index 0584957215..be52df881a 100644
--- a/cfg-mplayer.h
+++ b/cfg-mplayer.h
@@ -305,6 +305,7 @@ const m_option_t mplayer_opts[]={
{"playlist", NULL, CONF_TYPE_STRING, 0, 0, 0, NULL},
OPT_MAKE_FLAGS("ordered-chapters", ordered_chapters, 0),
+ OPT_INTRANGE("chapter-merge-threshold", chapter_merge_threshold, 0, 0, 10000),
// a-v sync stuff:
OPT_MAKE_FLAGS("correct-pts", user_correct_pts, 0),