From 1826e69af215175ff602e01e76998db3759fc3ab Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 23 May 2020 03:48:51 +0200 Subject: 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. --- options/options.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'options/options.c') 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, -- cgit v1.2.3