avcodec/adpcm: adpcm_dtk is stereo only

Fixes ticket #11133

Signed-off-by: James Almer <jamrial@gmail.com>
release/7.1
James Almer 5 months ago
parent d138d7a595
commit 2b349f2d73
  1. 3
      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 ||

Loading…
Cancel
Save