summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-02-12 11:58:35 +0100
committerwm4 <wm4@nowhere>2015-02-12 11:58:35 +0100
commit1d9134d044193020e5addf95561db10400f63425 (patch)
treeb34a49f6aecc9e0f1ad1ea97e7274b1705163099
parent5c5e38fc0e3096fe67ac28ee142e719f319961e0 (diff)
downloadmpv-1d9134d044193020e5addf95561db10400f63425.tar.bz2
mpv-1d9134d044193020e5addf95561db10400f63425.tar.xz
player: use af_scaletempo when slowing down audio too
In my opinion the artifacts created by af_scaletempo on extreme slowdown (50% or so) are too bothersome - but users disagree. So use af_scaletempo on any speed changes, not just on speedup.
-rw-r--r--DOCS/man/options.rst2
-rw-r--r--player/audio.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst
index 83bb05cdad..648eabcf4d 100644
--- a/DOCS/man/options.rst
+++ b/DOCS/man/options.rst
@@ -794,7 +794,7 @@ Audio
-----
``--audio-pitch-correction=<yes|no>``
- If this is enabled (default), playing with a speed higher than normal
+ If this is enabled (default), playing with a speed different from normal
automatically inserts the ``scaletempo`` audio filter. For details, see
audio filter section.
diff --git a/player/audio.c b/player/audio.c
index b63201029f..c4329f07c6 100644
--- a/player/audio.c
+++ b/player/audio.c
@@ -72,7 +72,7 @@ static int recreate_audio_filters(struct MPContext *mpctx)
if (speed != 1.0) {
int method = AF_CONTROL_SET_PLAYBACK_SPEED_RESAMPLE;
- if (speed > 1.0 && opts->pitch_correction)
+ if (opts->pitch_correction)
method = AF_CONTROL_SET_PLAYBACK_SPEED;
if (!af_control_any_rev(afs, method, &speed)) {
if (af_remove_by_label(afs, "playback-speed") < 0)