mirror of
https://github.com/librempeg/librempeg
synced 2024-11-22 18:49:58 +00:00
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:
parent
4d17787437
commit
d335026b93
@ -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…
Reference in New Issue
Block a user