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>2020-01-05 12:20:27 +0300
committerPaul B Mahol <onemda@gmail.com>2020-01-05 12:20:27 +0300
commit1187dbb7e9fbba8214f90033c99d5fccc699ca76 (patch)
tree8969e890004e60a42e2fb17549081fa0d2b352e2 /libavfilter/af_dynaudnorm.c
parent5d82c078ea93d7eee12ff863a4f9eb5fb2d30d16 (diff)
avfilter/af_dynaudnorm: move channels variable setup first
Diffstat (limited to 'libavfilter/af_dynaudnorm.c')
-rw-r--r--libavfilter/af_dynaudnorm.c3
1 files changed, 1 insertions, 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;
}