Commit 1c7a0161 authored by Justin Ruggles's avatar Justin Ruggles

imc: set channels to 1 instead of validating it

parent 32c7769e
......@@ -175,8 +175,10 @@ static av_cold int imc_decode_init(AVCodecContext *avctx)
IMCContext *q = avctx->priv_data;
double r1, r2;
if ((avctx->codec_id == AV_CODEC_ID_IMC && avctx->channels != 1)
|| (avctx->codec_id == AV_CODEC_ID_IAC && avctx->channels > 2)) {
if (avctx->codec_id == AV_CODEC_ID_IMC)
avctx->channels = 1;
if (avctx->channels > 2) {
av_log_ask_for_sample(avctx, "Number of channels is not supported\n");
return AVERROR_PATCHWELCOME;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment