diff options
author | Christoph Heinrich <christoph.heinrich@student.tugraz.at> | 2022-08-03 23:47:07 +0200 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-01-09 15:17:09 +0000 |
commit | c4ec47a65e5840643024ba056ba4db20a4300ed2 (patch) | |
tree | 290cb471e55301f374a0607c30b4725c459c5966 /common | |
parent | 67321b14402838eade127fa1d788a41906129b70 (diff) | |
download | mpv-c4ec47a65e5840643024ba056ba4db20a4300ed2.tar.bz2 mpv-c4ec47a65e5840643024ba056ba4db20a4300ed2.tar.xz |
player: add video-sync=display-tempo
So far there was no way to sync video to display and have audio sync to
video without changes in pitch.
With this option the audio does not get resampled (pitch change) and
instead the corrected audio speed is applied to audio filters.
Diffstat (limited to 'common')
-rw-r--r-- | common/common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/common.h b/common/common.h index 124a0e4956..206062e8ed 100644 --- a/common/common.h +++ b/common/common.h @@ -73,6 +73,7 @@ enum video_sync { VS_DISP_RESAMPLE, VS_DISP_RESAMPLE_VDROP, VS_DISP_RESAMPLE_NONE, + VS_DISP_TEMPO, VS_DISP_ADROP, VS_DISP_VDROP, VS_DISP_NONE, @@ -82,6 +83,7 @@ enum video_sync { #define VS_IS_DISP(x) ((x) == VS_DISP_RESAMPLE || \ (x) == VS_DISP_RESAMPLE_VDROP || \ (x) == VS_DISP_RESAMPLE_NONE || \ + (x) == VS_DISP_TEMPO || \ (x) == VS_DISP_ADROP || \ (x) == VS_DISP_VDROP || \ (x) == VS_DISP_NONE) |