aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2019-05-29 09:36:27 +0200
committerJames Almer <jamrial@gmail.com>2022-03-15 09:42:42 -0300
commitb14fa1b95d33b92fd554a665da4b60b9ef62830e (patch)
tree38c520b3243fd236ce7fb7808fc20860c25f8766
parentb5b18440f19017614e83c398d7abbeda5aa90553 (diff)
downloadffmpeg-b14fa1b95d33b92fd554a665da4b60b9ef62830e.tar.gz
hcom: convert to new channel layout API
Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r--libavcodec/hcom.c2
1 files changed, 1 insertions, 1 deletions
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;
}