Commit 1187dbb7 authored by Paul B Mahol's avatar Paul B Mahol

avfilter/af_dynaudnorm: move channels variable setup first

parent 5d82c078
...@@ -320,6 +320,7 @@ static int config_input(AVFilterLink *inlink) ...@@ -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) ...@@ -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;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment