diff mbox series

[FFmpeg-devel,218/281] hcom: convert to new channel layout API

Message ID 20220113020518.730-9-jamrial@gmail.com
State New
Headers show
Series New channel layout API
Related show

Commit Message

James Almer Jan. 13, 2022, 2:04 a.m. UTC
From: Anton Khirnov <anton@khirnov.net>

Signed-off-by: James Almer <jamrial@gmail.com>
---
 libavcodec/hcom.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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