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_dcshift.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_dcshift.c')
-rw-r--r-- | libavfilter/af_dcshift.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/af_dcshift.c b/libavfilter/af_dcshift.c index da7c16550a..480f01f4a3 100644 --- a/libavfilter/af_dcshift.c +++ b/libavfilter/af_dcshift.c @@ -73,7 +73,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) } if (s->limitergain > 0) { - for (i = 0; i < inlink->channels; i++) { + for (i = 0; i < inlink->ch_layout.nb_channels; i++) { const int32_t *src = (int32_t *)in->extended_data[i]; int32_t *dst = (int32_t *)out->extended_data[i]; @@ -98,7 +98,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) } } } else { - for (i = 0; i < inlink->channels; i++) { + for (i = 0; i < inlink->ch_layout.nb_channels; i++) { const int32_t *src = (int32_t *)in->extended_data[i]; int32_t *dst = (int32_t *)out->extended_data[i]; |