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_anlms.c | |
parent | 8a5896ec1f635ccf0d726f7ba7a06649ebeebf25 (diff) |
avfilter: convert to new channel layout API
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavfilter/af_anlms.c')
-rw-r--r-- | libavfilter/af_anlms.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavfilter/af_anlms.c b/libavfilter/af_anlms.c index f20e3c0e82..50bb0c7f42 100644 --- a/libavfilter/af_anlms.c +++ b/libavfilter/af_anlms.c @@ -156,8 +156,8 @@ static int process_channels(AVFilterContext *ctx, void *arg, int jobnr, int nb_j { AudioNLMSContext *s = ctx->priv; AVFrame *out = arg; - const int start = (out->channels * jobnr) / nb_jobs; - const int end = (out->channels * (jobnr+1)) / nb_jobs; + const int start = (out->ch_layout.nb_channels * jobnr) / nb_jobs; + const int end = (out->ch_layout.nb_channels * (jobnr+1)) / nb_jobs; for (int c = start; c < end; c++) { const float *input = (const float *)s->frame[0]->extended_data[c]; @@ -208,7 +208,7 @@ static int activate(AVFilterContext *ctx) } ff_filter_execute(ctx, process_channels, out, NULL, - FFMIN(ctx->outputs[0]->channels, ff_filter_get_nb_threads(ctx))); + FFMIN(ctx->outputs[0]->ch_layout.nb_channels, ff_filter_get_nb_threads(ctx))); out->pts = s->frame[0]->pts; |