summaryrefslogtreecommitdiffstats
path: root/options
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-08-15 23:52:42 +0200
committerwm4 <wm4@nowhere>2014-08-15 23:52:42 +0200
commit07aba86b37887c0aef7ea90af250fcf19062369b (patch)
tree0ea00b6aca7e6d04340182ab310128f9f8409031 /options
parent72ee9bb56c2f145569ca38e2066950fd7e6e8a4e (diff)
downloadmpv-07aba86b37887c0aef7ea90af250fcf19062369b.tar.bz2
mpv-07aba86b37887c0aef7ea90af250fcf19062369b.tar.xz
audio: add a mode to insert silence on severe A/V desync
This is probably a stupid idea, but it can't be denied that this actually allows playing video without larger desync, even if video is too slow.
Diffstat (limited to 'options')
-rw-r--r--options/options.c2
-rw-r--r--options/options.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/options/options.c b/options/options.c
index af294a7709..58e8d9dec4 100644
--- a/options/options.c
+++ b/options/options.c
@@ -462,6 +462,8 @@ const m_option_t mp_opts[] = {
{"decoder", 2},
{"decoder+vo", 3})),
+ OPT_FLAG("audiodrop", insert_silence, 0),
+
OPT_FLAG("untimed", untimed, M_OPT_FIXED),
OPT_STRING("stream-capture", stream_capture, M_OPT_FIXED),
diff --git a/options/options.h b/options/options.h
index 5f59fa42c6..9b48a0162e 100644
--- a/options/options.h
+++ b/options/options.h
@@ -137,6 +137,7 @@ typedef struct MPOpts {
float default_max_pts_correction;
int autosync;
int frame_dropping;
+ int insert_silence;
int term_osd;
int term_osd_bar;
char *term_osd_bar_chars;