ask for a sample if not mono
---
 libavcodec/imc.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/libavcodec/imc.c b/libavcodec/imc.c
index ae4f103..1eb227a 100644
--- a/libavcodec/imc.c
+++ b/libavcodec/imc.c
@@ -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++)
-- 
1.7.1

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to