diff mbox series

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

Message ID 20220113015612.448-1-jamrial@gmail.com
State New
Headers show
Series New channel layout API | expand

Commit Message

James Almer Jan. 13, 2022, 1:55 a.m. UTC
From: Anton Khirnov <anton@khirnov.net>

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

Patch

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);