Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2022-11-06 21:13:57 +0300
committerPaul B Mahol <onemda@gmail.com>2022-11-07 10:32:48 +0300
commit7f4c5f6525dcf1513121de3f911c3210f6805ebc (patch)
tree00b4760611f48e6f7eb307e12f26dcf40d7cd99a /libavfilter
parent7027101904a483e1c6a6db89b47b3362c37155a0 (diff)
avfilter/af_speechnorm: remove long search range for min gain
Effective only for linked channels processing.
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/af_speechnorm.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavfilter/af_speechnorm.c b/libavfilter/af_speechnorm.c
index fd6b7d9a32..cc0c08feef 100644
--- a/libavfilter/af_speechnorm.c
+++ b/libavfilter/af_speechnorm.c
@@ -366,7 +366,6 @@ static void filter_link_channels_## name (AVFilterContext *ctx,
\
while (n < nb_samples) { \
int min_size = nb_samples - n; \
- int max_size = 1; \
ptype gain = s->max_expansion; \
\
for (int ch = 0; ch < inlink->ch_layout.nb_channels; ch++) { \
@@ -377,7 +376,6 @@ static void filter_link_channels_## name (AVFilterContext *ctx,
\
next_pi(ctx, cc, cc->bypass); \
min_size = FFMIN(min_size, cc->pi_size); \
- max_size = FFMAX(max_size, cc->pi_size); \
} \
\
av_assert1(min_size > 0); \
@@ -386,7 +384,7 @@ static void filter_link_channels_## name (AVFilterContext *ctx,
\
if (cc->bypass) \
continue; \
- gain = FFMIN(gain, min_gain(ctx, cc, max_size)); \
+ gain = FFMIN(gain, min_gain(ctx, cc, min_size)); \
} \
\
for (int ch = 0; ch < inlink->ch_layout.nb_channels; ch++) { \