From d335026b93ef1c42aba578c5f8056b597ffe5d34 Mon Sep 17 00:00:00 2001 From: James Almer Date: Mon, 12 Aug 2024 13:48:19 -0300 Subject: [PATCH] avcodec/adpcm: adpcm_dtk is stereo only Fixes ticket #11133 Signed-off-by: James Almer Signed-off-by: Paul B Mahol --- libavcodec/adpcm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavcodec/adpcm.c b/libavcodec/adpcm.c index 6761838044..660e9e07a1 100644 --- a/libavcodec/adpcm.c +++ b/libavcodec/adpcm.c @@ -276,6 +276,9 @@ static av_cold int adpcm_decode_init(AVCodecContext * avctx) return AVERROR_PATCHWELCOME; } break; + case AV_CODEC_ID_ADPCM_DTK: + min_channels = 2; + break; case AV_CODEC_ID_ADPCM_PSX: max_channels = 8; if (avctx->ch_layout.nb_channels <= 0 ||