aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/f_loop.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/f_loop.c
parent8a5896ec1f635ccf0d726f7ba7a06649ebeebf25 (diff)
downloadffmpeg-1f96db959c1235bb7079d354e09914a0a2608f62.tar.gz
avfilter: convert to new channel layout API
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavfilter/f_loop.c')
-rw-r--r--libavfilter/f_loop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/f_loop.c b/libavfilter/f_loop.c
index f8ae4a6a3a..c619ba85b3 100644
--- a/libavfilter/f_loop.c
+++ b/libavfilter/f_loop.c
@@ -70,8 +70,8 @@ static int aconfig_input(AVFilterLink *inlink)
AVFilterContext *ctx = inlink->dst;
LoopContext *s = ctx->priv;
- s->fifo = av_audio_fifo_alloc(inlink->format, inlink->channels, 8192);
- s->left = av_audio_fifo_alloc(inlink->format, inlink->channels, 8192);
+ s->fifo = av_audio_fifo_alloc(inlink->format, inlink->ch_layout.nb_channels, 8192);
+ s->left = av_audio_fifo_alloc(inlink->format, inlink->ch_layout.nb_channels, 8192);
if (!s->fifo || !s->left)
return AVERROR(ENOMEM);