avcodec/adpcm: adpcm_dtk is stereo only

Fixes ticket #11133

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer 2024-08-12 13:48:19 -03:00
parent d138d7a595
commit 2b349f2d73

View File

@ -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 ||