diff options
author | Paul B Mahol <onemda@gmail.com> | 2020-01-05 10:20:27 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2020-01-05 10:20:27 +0100 |
commit | 1187dbb7e9fbba8214f90033c99d5fccc699ca76 (patch) | |
tree | 8969e890004e60a42e2fb17549081fa0d2b352e2 /libavfilter | |
parent | 5d82c078ea93d7eee12ff863a4f9eb5fb2d30d16 (diff) | |
download | ffmpeg-1187dbb7e9fbba8214f90033c99d5fccc699ca76.tar.gz |
avfilter/af_dynaudnorm: move channels variable setup first
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/af_dynaudnorm.c | 3 |
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; } |