diff mbox series

[FFmpeg-devel,163/281] vivo: convert to new channel layout API

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

Commit Message

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

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

Patch

diff --git a/libavformat/vivo.c b/libavformat/vivo.c
index 2a08e1df03..114eb212e5 100644
--- a/libavformat/vivo.c
+++ b/libavformat/vivo.c
@@ -249,7 +249,8 @@  static int vivo_read_header(AVFormatContext *s)
     ast->start_time        = 0;
     ast->codecpar->codec_tag  = 0;
     ast->codecpar->codec_type = AVMEDIA_TYPE_AUDIO;
-    ast->codecpar->channels = 1;
+    ast->codecpar->ch_layout.order       = AV_CHANNEL_ORDER_UNSPEC;
+    ast->codecpar->ch_layout.nb_channels = 1;
 
     return 0;
 }