diff options
author | wm4 <wm4@nowhere> | 2015-02-12 11:58:35 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-02-12 11:58:35 +0100 |
commit | 1d9134d044193020e5addf95561db10400f63425 (patch) | |
tree | b34a49f6aecc9e0f1ad1ea97e7274b1705163099 /player | |
parent | 5c5e38fc0e3096fe67ac28ee142e719f319961e0 (diff) | |
download | mpv-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.
Diffstat (limited to 'player')
-rw-r--r-- | player/audio.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |