From b14fa1b95d33b92fd554a665da4b60b9ef62830e Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Wed, 29 May 2019 09:36:27 +0200 Subject: [PATCH] hcom: convert to new channel layout API Signed-off-by: James Almer --- libavcodec/hcom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/hcom.c b/libavcodec/hcom.c index 3030e37d46..d30d6402d1 100644 --- a/libavcodec/hcom.c +++ b/libavcodec/hcom.c @@ -44,7 +44,7 @@ static av_cold int hcom_init(AVCodecContext *avctx) { HCOMContext *s = avctx->priv_data; - if (avctx->channels != 1) { + if (avctx->ch_layout.nb_channels != 1) { av_log(avctx, AV_LOG_ERROR, "invalid number of channels\n"); return AVERROR_INVALIDDATA; }