From 8f835935b3fe367cc419d505d9e8fd900909e8ab Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Mon, 13 May 2019 11:11:26 +0200 Subject: [PATCH] hcom: convert to new channel layout API Signed-off-by: James Almer --- libavformat/hcom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/hcom.c b/libavformat/hcom.c index 97f0003210..5031f00297 100644 --- a/libavformat/hcom.c +++ b/libavformat/hcom.c @@ -61,7 +61,7 @@ static int hcom_read_header(AVFormatContext *s) return AVERROR(ENOMEM); st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO; - st->codecpar->channels = 1; + st->codecpar->ch_layout.nb_channels = 1; st->codecpar->sample_rate = 22050 / divisor; st->codecpar->codec_id = AV_CODEC_ID_HCOM; st->codecpar->bits_per_coded_sample = 8;