mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
imc: validate channel count
ask for a sample if not mono
This commit is contained in:
parent
95fee70d67
commit
7b7f47e733
@ -108,6 +108,11 @@ static av_cold int imc_decode_init(AVCodecContext * avctx)
|
||||
IMCContext *q = avctx->priv_data;
|
||||
double r1, r2;
|
||||
|
||||
if (avctx->channels != 1) {
|
||||
av_log_ask_for_sample(avctx, "Number of channels is not supported\n");
|
||||
return AVERROR_PATCHWELCOME;
|
||||
}
|
||||
|
||||
q->decoder_reset = 1;
|
||||
|
||||
for(i = 0; i < BANDS; i++)
|
||||
|
Loading…
Reference in New Issue
Block a user