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

James Almer jamrial at gmail.com
Thu Jan 13 04:00:10 EET 2022


From: Anton Khirnov <anton at khirnov.net>

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

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;
 }
-- 
2.34.1



More information about the ffmpeg-devel mailing list