From 7591de37e6b38189396d0dec43549e029847bf48 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Mon, 13 May 2019 11:11:26 +0200 Subject: [PATCH] vivo: convert to new channel layout API Signed-off-by: James Almer --- libavformat/vivo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/vivo.c b/libavformat/vivo.c index 2a08e1df03..02df4f0013 100644 --- a/libavformat/vivo.c +++ b/libavformat/vivo.c @@ -249,7 +249,7 @@ 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.nb_channels = 1; return 0; }