avfilter/af_dynaudnorm: move channels variable setup first

This commit is contained in:
Paul B Mahol 2020-01-05 10:20:27 +01:00
parent 5d82c078ea
commit 1187dbb7e9
1 changed files with 1 additions and 2 deletions

View File

@ -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;
}