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.
This commit is contained in:
wm4 2015-02-12 11:58:35 +01:00
parent 5c5e38fc0e
commit 1d9134d044
2 changed files with 2 additions and 2 deletions

View File

@ -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.

View File

@ -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)