From ff1eaea3e7f9ac2ab45b298326b96d256f487dc3 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 5 Dec 2015 23:55:56 +0100 Subject: sd_lavc: remove small gaps between subtitles Just like with text subtitles. Move the magic constants to a common place too. --- sub/sd.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sub/sd.h') diff --git a/sub/sd.h b/sub/sd.h index 4be48fedb8..9e6b1eb0ec 100644 --- a/sub/sd.h +++ b/sub/sd.h @@ -4,6 +4,11 @@ #include "dec_sub.h" #include "demux/packet.h" +// up to 200 ms overlaps or gaps are removed +#define SUB_GAP_THRESHOLD 0.2 +// don't change timings if durations are smaller +#define SUB_GAP_KEEP 0.4 + struct sd { struct mp_log *log; struct MPOpts *opts; -- cgit v1.2.3