summaryrefslogtreecommitdiffstats
path: root/options/options.c
diff options
context:
space:
mode:
Diffstat (limited to 'options/options.c')
-rw-r--r--options/options.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/options/options.c b/options/options.c
index 963751f896..28466ed0ea 100644
--- a/options/options.c
+++ b/options/options.c
@@ -518,6 +518,18 @@ const m_option_t mp_opts[] = {
OPT_CHOICE("pts-association-mode", user_pts_assoc_mode, 0,
({"auto", 0}, {"decoder", 1}, {"sort", 2})),
OPT_FLAG("initial-audio-sync", initial_audio_sync, 0),
+ OPT_CHOICE("video-sync", video_sync, 0,
+ ({"audio", VS_DEFAULT},
+ {"display-resample", VS_DISP_RESAMPLE},
+ {"display-resample-vdrop", VS_DISP_RESAMPLE_VDROP},
+ {"display-resample-desync", VS_DISP_RESAMPLE_NONE},
+ {"display-vdrop", VS_DISP_VDROP},
+ {"display-desync", VS_DISP_NONE},
+ {"desync", VS_NONE})),
+ OPT_DOUBLE("video-sync-max-video-change", sync_max_video_change,
+ M_OPT_MIN, .min = 0),
+ OPT_DOUBLE("video-sync-max-audio-change", sync_max_audio_change,
+ M_OPT_MIN | M_OPT_MAX, .min = 0, .max = 1),
OPT_CHOICE("hr-seek", hr_seek, 0,
({"no", -1}, {"absolute", 0}, {"yes", 1}, {"always", 1})),
OPT_FLOAT("hr-seek-demuxer-offset", hr_seek_demuxer_offset, 0),
@@ -710,6 +722,8 @@ const struct MPOpts mp_default_opts = {
.chapter_merge_threshold = 100,
.chapter_seek_threshold = 5.0,
.hr_seek_framedrop = 1,
+ .sync_max_video_change = 1,
+ .sync_max_audio_change = 0.125,
.load_config = 1,
.position_resume = 1,
.stream_cache = {