Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -320,6 +320,7 @@ static int config_input(AVFilterLink *inlink) · 319 unmodified lines | |||
| 320 | 320 | ||
| 321 | uninit(ctx); | 321 | uninit(ctx); |
| 322 | 322 | ||
| 323 | s->channels = inlink->channels; | ||
| 323 | s->frame_len = frame_size(inlink->sample_rate, s->frame_len_msec); | 324 | s->frame_len = frame_size(inlink->sample_rate, s->frame_len_msec); |
| 324 | av_log(ctx, AV_LOG_DEBUG, "frame len %d\n", s->frame_len); | 325 | av_log(ctx, AV_LOG_DEBUG, "frame len %d\n", s->frame_len); |
| 325 | 326 | ||
| @@ -358,8 +359,6 @@ static int config_input(AVFilterLink *inlink) · 32 unmodified lines | |||
| 358 | precalculate_fade_factors(s->fade_factors, s->frame_len); | 359 | precalculate_fade_factors(s->fade_factors, s->frame_len); |
| 359 | init_gaussian_filter(s); | 360 | init_gaussian_filter(s); |
| 360 | 361 | ||
| 361 | s->channels = inlink->channels; | ||
| 362 | |||
| 363 | return 0; | 362 | return 0; |
| 364 | } | 363 | } |
| 365 | 364 | ||