diff options
author | wm4 <wm4@nowhere> | 2015-10-27 20:56:46 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-10-27 20:56:46 +0100 |
commit | aaec2aba3890e1b2ea8f4dc158d884bc85a59517 (patch) | |
tree | 61d9e3464aa0777bb7e58257e24b290c4b2146bd /options | |
parent | 3b95dd47d53d4d9b5a247f2dda550b5470e62b48 (diff) | |
download | mpv-aaec2aba3890e1b2ea8f4dc158d884bc85a59517.tar.bz2 mpv-aaec2aba3890e1b2ea8f4dc158d884bc85a59517.tar.xz |
player: add audio drop/duplicate mode
Not very robust in the moment.
Diffstat (limited to 'options')
-rw-r--r-- | options/options.c | 4 | ||||
-rw-r--r-- | options/options.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/options/options.c b/options/options.c index 06ffac708c..45c1b0e277 100644 --- a/options/options.c +++ b/options/options.c @@ -528,6 +528,7 @@ const m_option_t mp_opts[] = { {"display-resample", VS_DISP_RESAMPLE}, {"display-resample-vdrop", VS_DISP_RESAMPLE_VDROP}, {"display-resample-desync", VS_DISP_RESAMPLE_NONE}, + {"display-adrop", VS_DISP_ADROP}, {"display-vdrop", VS_DISP_VDROP}, {"display-desync", VS_DISP_NONE}, {"desync", VS_NONE})), @@ -535,6 +536,8 @@ const m_option_t mp_opts[] = { 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_DOUBLE("video-sync-adrop-size", sync_audio_drop_size, + 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), @@ -728,6 +731,7 @@ const struct MPOpts mp_default_opts = { .hr_seek_framedrop = 1, .sync_max_video_change = 1, .sync_max_audio_change = 0.125, + .sync_audio_drop_size = 0.020, .load_config = 1, .position_resume = 1, .stream_cache = { diff --git a/options/options.h b/options/options.h index 1379ce3416..31006c11bd 100644 --- a/options/options.h +++ b/options/options.h @@ -148,6 +148,7 @@ typedef struct MPOpts { int video_sync; double sync_max_video_change; double sync_max_audio_change; + double sync_audio_drop_size; int hr_seek; float hr_seek_demuxer_offset; int hr_seek_framedrop; |