diff options
author | Anton Khirnov <anton@khirnov.net> | 2020-01-29 17:39:13 +0100 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2022-03-15 09:42:40 -0300 |
commit | 18f61d19c22d8a7557d808b58dbde02c8a5272aa (patch) | |
tree | c97157cf93e8b797ffe2abf423f11182dad9c049 /libavcodec/aptx.c | |
parent | a4a73c6a9c2007dbea55519482499c7b7462ac9b (diff) |
aptx: convert to new channel layout API
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/aptx.c')
-rw-r--r-- | libavcodec/aptx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/aptx.c b/libavcodec/aptx.c index 3aeee1907c..d8e0c207cf 100644 --- a/libavcodec/aptx.c +++ b/libavcodec/aptx.c @@ -509,7 +509,7 @@ av_cold int ff_aptx_init(AVCodecContext *avctx) AptXContext *s = avctx->priv_data; int chan, subband; - if (avctx->channels != 2) + if (avctx->ch_layout.nb_channels != 2) return AVERROR_INVALIDDATA; s->hd = avctx->codec->id == AV_CODEC_ID_APTX_HD; |