summaryrefslogtreecommitdiff
path: root/libavfilter/af_atilt.c
diff options
context:
space:
mode:
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)