aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/adxdec.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2023-09-05 14:46:39 +0200
committerPaul B Mahol <onemda@gmail.com>2023-09-05 23:21:39 +0200
commit39f6d9c5c1272da15fcc6ca9186ce40661326e84 (patch)
tree61762c4e6eb92fc74420b7e986be3a5d821e8576 /libavcodec/adxdec.c
parentfdd123de1307cc40c807ddd07deef034fb721046 (diff)
downloadffmpeg-39f6d9c5c1272da15fcc6ca9186ce40661326e84.tar.gz
avcodec/adxdec: add support for 6 channels
Diffstat (limited to 'libavcodec/adxdec.c')
-rw-r--r--libavcodec/adxdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/adxdec.c b/libavcodec/adxdec.c
index 97a7e59686..4300dede5e 100644
--- a/libavcodec/adxdec.c
+++ b/libavcodec/adxdec.c
@@ -70,7 +70,7 @@ static int adx_decode_header(AVCodecContext *avctx, const uint8_t *buf,
/* channels */
channels = buf[7];
- if (channels <= 0 || channels > 2)
+ if (channels <= 0 || channels > MAX_CHANNELS)
return AVERROR_INVALIDDATA;
if (avctx->ch_layout.nb_channels != channels) {