summaryrefslogtreecommitdiff
path: root/libavfilter/af_atilt.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2021-08-31 11:03:14 -0300
committerJames Almer <jamrial@gmail.com>2022-03-15 09:42:46 -0300
commit1f96db959c1235bb7079d354e09914a0a2608f62 (patch)
tree21ac480d5b148c0524761853e6badb3a90a7ca3f /libavfilter/af_atilt.c
parent8a5896ec1f635ccf0d726f7ba7a06649ebeebf25 (diff)
avfilter: convert to new channel layout API
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavfilter/af_atilt.c')
-rw-r--r--libavfilter/af_atilt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavfilter/af_atilt.c b/libavfilter/af_atilt.c
index a6f7782af5..9ece531ea4 100644
--- a/libavfilter/af_atilt.c
+++ b/libavfilter/af_atilt.c
@@ -125,8 +125,8 @@ static int filter_channels_## name(AVFilterContext *ctx, void *arg, \
ThreadData *td = arg; \
AVFrame *out = td->out; \
AVFrame *in = td->in; \
- const int start = (in->channels * jobnr) / nb_jobs; \
- const int end = (in->channels * (jobnr+1)) / nb_jobs; \
+ const int start = (in->ch_layout.nb_channels * jobnr) / nb_jobs; \
+ const int end = (in->ch_layout.nb_channels * (jobnr+1)) / nb_jobs; \
const type level = s->level; \
\
for (int ch = start; ch < end; ch++) { \
@@ -196,7 +196,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
}
td.in = in; td.out = out;
- ff_filter_execute(ctx, s->filter_channels, &td, NULL, FFMIN(inlink->channels,
+ ff_filter_execute(ctx, s->filter_channels, &td, NULL, FFMIN(inlink->ch_layout.nb_channels,
ff_filter_get_nb_threads(ctx)));
if (out != in)