From e17628b720e696159405dfa8117950cf9d194808 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Sun, 6 Nov 2022 20:47:28 +0100 Subject: avfilter/af_speechnorm: change initial gain state Stops doing unwanted fade-in at start. --- libavfilter/af_speechnorm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/af_speechnorm.c b/libavfilter/af_speechnorm.c index cc0c08feef..4f56ad9a8f 100644 --- a/libavfilter/af_speechnorm.c +++ b/libavfilter/af_speechnorm.c @@ -536,7 +536,7 @@ static int config_input(AVFilterLink *inlink) ChannelContext *cc = &s->cc[ch]; cc->state = -1; - cc->gain_state = 1.; + cc->gain_state = s->max_expansion; } switch (inlink->format) { -- cgit v1.2.3