Fixes a crash when decoding VQA files.
Regression since
c012f9b265e172de9c240c9dfab8665936fa3e83.
Reported-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Signed-off-by: Zane van Iperen <zane@zanevaniperen.com>
unsigned int min_channels = 1;
unsigned int max_channels = 2;
unsigned int min_channels = 1;
unsigned int max_channels = 2;
switch(avctx->codec->id) {
case AV_CODEC_ID_ADPCM_IMA_AMV:
max_channels = 1;
switch(avctx->codec->id) {
case AV_CODEC_ID_ADPCM_IMA_AMV:
max_channels = 1;
default:
avctx->sample_fmt = AV_SAMPLE_FMT_S16;
}
default:
avctx->sample_fmt = AV_SAMPLE_FMT_S16;
}