[FFmpeg-cvslog] avfilter/af_speechnorm: change initial gain state
Paul B Mahol
git at videolan.org
Mon Nov 7 09:32:34 EET 2022
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sun Nov 6 20:47:28 2022 +0100| [e17628b720e696159405dfa8117950cf9d194808] | committer: Paul B Mahol
avfilter/af_speechnorm: change initial gain state
Stops doing unwanted fade-in at start.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e17628b720e696159405dfa8117950cf9d194808
---
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) {
More information about the ffmpeg-cvslog
mailing list