History

avfilter/af_dynaudnorm: move channels variable setup first

Paul B Mahol committed 6 years ago

Commit 1187dbb1 parent 5d82c071 file · +1 −2Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/af_dynaudnorm.c+1−2
@@ -320,6 +320,7 @@ static int config_input(AVFilterLink *inlink) · 319 unmodified lines
320320
321321 uninit(ctx);
322322
323+ s->channels = inlink->channels;
323324 s->frame_len = frame_size(inlink->sample_rate, s->frame_len_msec);
324325 av_log(ctx, AV_LOG_DEBUG, "frame len %d\n", s->frame_len);
325326
@@ -358,8 +359,6 @@ static int config_input(AVFilterLink *inlink) · 32 unmodified lines
358359 precalculate_fade_factors(s->fade_factors, s->frame_len);
359360 init_gaussian_filter(s);
360361
361− s->channels = inlink->channels;
362−
363362 return 0;
364363 }
365364

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t