Browse Source

avfilter/af_dynaudnorm: move channels variable setup first

tags/n4.3
Paul B Mahol 5 years ago
parent
commit
1187dbb7e9
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      libavfilter/af_dynaudnorm.c

+ 1
- 2
libavfilter/af_dynaudnorm.c 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;
}



Loading…
Cancel
Save