summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorllyyr <llyyr.public@gmail.com>2023-09-25 23:47:54 +0530
committerDudemanguy <random342@airmail.cc>2023-09-27 14:03:30 +0000
commit2033a3c93e24f65067b05da11b57547eef531762 (patch)
tree7446cc5cdaa501d84d058c8f67f7c713278d1614
parenta238afdbc5a05580ef6f824ae01d344390451e5c (diff)
downloadmpv-2033a3c93e24f65067b05da11b57547eef531762.tar.bz2
mpv-2033a3c93e24f65067b05da11b57547eef531762.tar.xz
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.
-rw-r--r--DOCS/man/af.rst2
-rw-r--r--audio/filter/af_scaletempo2.c2
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=<speed>``
Mute audio if the playback speed is above ``<speed>``
- and ``<speed> != 0``. (default: 4.0)
+ and ``<speed> != 0``. (default: 8.0)
``search-interval=<amount>``
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,
},