1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-15 14:13:16 +02:00

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

View File

@@ -320,6 +320,7 @@ static int config_input(AVFilterLink *inlink)
uninit(ctx); uninit(ctx);
s->channels = inlink->channels;
s->frame_len = frame_size(inlink->sample_rate, s->frame_len_msec); 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); 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); precalculate_fade_factors(s->fade_factors, s->frame_len);
init_gaussian_filter(s); init_gaussian_filter(s);
s->channels = inlink->channels;
return 0; return 0;
} }