diff options
Diffstat (limited to 'options')
-rw-r--r-- | options/options.c | 2 | ||||
-rw-r--r-- | options/options.h | 1 |
2 files changed, 3 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, diff --git a/options/options.h b/options/options.h index db48135b1a..548edf70c3 100644 --- a/options/options.h +++ b/options/options.h @@ -206,6 +206,7 @@ typedef struct MPOpts { double sync_max_video_change; double sync_max_audio_change; double sync_audio_drop_size; + int sync_max_factor; int hr_seek; float hr_seek_demuxer_offset; int hr_seek_framedrop; |