[FFmpeg-cvslog] avfilter/af_dynaudnorm: move channels variable setup first

Paul B Mahol git at videolan.org
Sun Jan 5 11:26:42 EET 2020


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sun Jan  5 10:20:27 2020 +0100| [1187dbb7e9fbba8214f90033c99d5fccc699ca76] | committer: Paul B Mahol

avfilter/af_dynaudnorm: move channels variable setup first

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1187dbb7e9fbba8214f90033c99d5fccc699ca76
---

 libavfilter/af_dynaudnorm.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libavfilter/af_dynaudnorm.c b/libavfilter/af_dynaudnorm.c
index 27c13bf424..6d0a71c0b7 100644
--- a/libavfilter/af_dynaudnorm.c
+++ b/libavfilter/af_dynaudnorm.c
@@ -320,6 +320,7 @@ static int config_input(AVFilterLink *inlink)
 
     uninit(ctx);
 
+    s->channels = inlink->channels;
     s->frame_len = frame_size(inlink->sample_rate, s->frame_len_msec);
     av_log(ctx, AV_LOG_DEBUG, "frame len %d\n", s->frame_len);
 
@@ -358,8 +359,6 @@ static int config_input(AVFilterLink *inlink)
     precalculate_fade_factors(s->fade_factors, s->frame_len);
     init_gaussian_filter(s);
 
-    s->channels = inlink->channels;
-
     return 0;
 }
 



More information about the ffmpeg-cvslog mailing list