summaryrefslogtreecommitdiffstats
path: root/sub/sd.h
diff options
context:
space:
mode:
Diffstat (limited to 'sub/sd.h')
-rw-r--r--sub/sd.h5
1 files changed, 5 insertions, 0 deletions
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;