[FFmpeg-devel] [PATCH 089/281] lvf: convert to new channel layout API

James Almer jamrial at gmail.com
Thu Jan 13 03:59:56 EET 2022


From: Anton Khirnov <anton at khirnov.net>

Signed-off-by: James Almer <jamrial at gmail.com>
---
 libavformat/lvfdec.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavformat/lvfdec.c b/libavformat/lvfdec.c
index cd64fb9aee..d060b3b0aa 100644
--- a/libavformat/lvfdec.c
+++ b/libavformat/lvfdec.c
@@ -79,7 +79,8 @@ static int lvf_read_header(AVFormatContext *s)
 
             st->codecpar->codec_type  = AVMEDIA_TYPE_AUDIO;
             st->codecpar->codec_tag   = avio_rl16(s->pb);
-            st->codecpar->channels    = avio_rl16(s->pb);
+            st->codecpar->ch_layout.order       = AV_CHANNEL_ORDER_UNSPEC;
+            st->codecpar->ch_layout.nb_channels = avio_rl16(s->pb);
             st->codecpar->sample_rate = avio_rl16(s->pb);
             avio_skip(s->pb, 8);
             st->codecpar->bits_per_coded_sample = avio_r8(s->pb);
-- 
2.34.1



More information about the ffmpeg-devel mailing list