diff options
author | James Almer <jamrial@gmail.com> | 2021-08-31 11:03:14 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2022-03-15 09:42:46 -0300 |
commit | 1f96db959c1235bb7079d354e09914a0a2608f62 (patch) | |
tree | 21ac480d5b148c0524761853e6badb3a90a7ca3f /libavfilter/af_aecho.c | |
parent | 8a5896ec1f635ccf0d726f7ba7a06649ebeebf25 (diff) | |
download | ffmpeg-1f96db959c1235bb7079d354e09914a0a2608f62.tar.gz |
avfilter: convert to new channel layout API
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavfilter/af_aecho.c')
-rw-r--r-- | libavfilter/af_aecho.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavfilter/af_aecho.c b/libavfilter/af_aecho.c index 73d9f1ac7f..e610c30d59 100644 --- a/libavfilter/af_aecho.c +++ b/libavfilter/af_aecho.c @@ -236,7 +236,7 @@ static int config_output(AVFilterLink *outlink) av_freep(&s->delayptrs); return av_samples_alloc_array_and_samples(&s->delayptrs, NULL, - outlink->channels, + outlink->ch_layout.nb_channels, s->max_samples, outlink->format, 0); } @@ -259,7 +259,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame) } s->echo_samples(s, s->delayptrs, frame->extended_data, out_frame->extended_data, - frame->nb_samples, inlink->channels); + frame->nb_samples, inlink->ch_layout.nb_channels); s->next_pts = frame->pts + av_rescale_q(frame->nb_samples, (AVRational){1, inlink->sample_rate}, inlink->time_base); @@ -282,11 +282,11 @@ static int request_frame(AVFilterLink *outlink) av_samples_set_silence(frame->extended_data, 0, frame->nb_samples, - outlink->channels, + outlink->ch_layout.nb_channels, frame->format); s->echo_samples(s, s->delayptrs, frame->extended_data, frame->extended_data, - frame->nb_samples, outlink->channels); + frame->nb_samples, outlink->ch_layout.nb_channels); frame->pts = s->next_pts; if (s->next_pts != AV_NOPTS_VALUE) |