From 2033a3c93e24f65067b05da11b57547eef531762 Mon Sep 17 00:00:00 2001 From: llyyr Date: Mon, 25 Sep 2023 23:47:54 +0530 Subject: [PATCH] af_scaletempo2: raise max playback rate to 8.0 4.0 was too low and copied from Chromium defaults when the filter was initially written, there's no good reason for it to be so low, so double it. --- DOCS/man/af.rst | 2 +- audio/filter/af_scaletempo2.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/DOCS/man/af.rst b/DOCS/man/af.rst index 22982af973..3607ca44d8 100644 --- a/DOCS/man/af.rst +++ b/DOCS/man/af.rst @@ -179,7 +179,7 @@ Available filters are: ``max-speed=`` Mute audio if the playback speed is above ```` - and `` != 0``. (default: 4.0) + and `` != 0``. (default: 8.0) ``search-interval=`` Length in milliseconds to search for best overlap position. (default: 30) diff --git a/audio/filter/af_scaletempo2.c b/audio/filter/af_scaletempo2.c index ea4b63975e..1aa656dc54 100644 --- a/audio/filter/af_scaletempo2.c +++ b/audio/filter/af_scaletempo2.c @@ -234,7 +234,7 @@ const struct mp_user_filter_entry af_scaletempo2 = { .priv_size = sizeof(OPT_BASE_STRUCT), .priv_defaults = &(const OPT_BASE_STRUCT) { .min_playback_rate = 0.25, - .max_playback_rate = 4.0, + .max_playback_rate = 8.0, .ola_window_size_ms = 20, .wsola_search_interval_ms = 30, },