From 3654db79f4b912c1a4c3d16700c341628e40de3c Mon Sep 17 00:00:00 2001 From: James Almer Date: Mon, 23 Aug 2021 23:34:21 -0300 Subject: [PATCH] moflex: convert to new channel layout API Signed-off-by: James Almer --- libavformat/moflex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/moflex.c b/libavformat/moflex.c index 1d342417f7..2ea7c1f994 100644 --- a/libavformat/moflex.c +++ b/libavformat/moflex.c @@ -233,7 +233,7 @@ static int moflex_read_sync(AVFormatContext *s) st->codecpar->width = width; st->codecpar->height = height; st->codecpar->sample_rate= sample_rate; - st->codecpar->channels = channels; + st->codecpar->ch_layout.nb_channels = channels; st->priv_data = av_packet_alloc(); if (!st->priv_data) return AVERROR(ENOMEM);