avcodec/adpcm: adpcm_dtk is stereo only

Fixes ticket #11133

Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
James Almer 2024-08-12 13:48:19 -03:00 committed by Paul B Mahol
parent 4d17787437
commit d335026b93

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