From 7001c2d994457e49b6c330319987649eadbdcb80 Mon Sep 17 00:00:00 2001 From: Uoti Urpala Date: Fri, 26 Nov 2010 16:56:05 +0200 Subject: 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 . --- cfg-mplayer.h | 1 + 1 file changed, 1 insertion(+) (limited to 'cfg-mplayer.h') 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), -- cgit v1.2.3