diff options
author | wm4 <wm4@nowhere> | 2020-05-23 03:48:51 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2020-05-23 03:48:51 +0200 |
commit | 1826e69af215175ff602e01e76998db3759fc3ab (patch) | |
tree | 1fe40ec633e0f386031c739560990c9ee5bfce41 /options/options.c | |
parent | d62131d3aeda6f3b4c255ca06e70573433a8f16a (diff) | |
download | mpv-1826e69af215175ff602e01e76998db3759fc3ab.tar.bz2 mpv-1826e69af215175ff602e01e76998db3759fc3ab.tar.xz |
options: add option to control display-sync factor
Can be useful to force it to adapt to extreme speed changes, while a
higher limit would just use a fraction closer to the original video
speed.
Probably useful for testing only.
Diffstat (limited to 'options/options.c')
-rw-r--r-- | options/options.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/options/options.c b/options/options.c index f32fec0cf9..08c9a7247f 100644 --- a/options/options.c +++ b/options/options.c @@ -692,6 +692,7 @@ static const m_option_t mp_opts[] = { M_RANGE(0, 1)}, {"video-sync-adrop-size", OPT_DOUBLE(sync_audio_drop_size), M_RANGE(0, 1)}, + {"video-sync-max-factor", OPT_INT(sync_max_factor), M_RANGE(1, 10)}, {"hr-seek", OPT_CHOICE(hr_seek, {"no", -1}, {"absolute", 0}, {"yes", 1}, {"always", 1}, {"default", 2})}, {"hr-seek-demuxer-offset", OPT_FLOAT(hr_seek_demuxer_offset)}, @@ -951,6 +952,7 @@ static const struct MPOpts mp_default_opts = { .sync_max_video_change = 1, .sync_max_audio_change = 0.125, .sync_audio_drop_size = 0.020, + .sync_max_factor = 5, .load_config = 1, .position_resume = 1, .autoload_files = 1, |