Commit 007f7739 authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

Encoding alac with more than two channels is not supported.

parent f1b3f33d
......@@ -389,6 +389,11 @@ static av_cold int alac_encode_init(AVCodecContext *avctx)
return -1;
}
if(avctx->channels > 2) {
av_log(avctx, AV_LOG_ERROR, "channels > 2 not supported\n");
return AVERROR_PATCHWELCOME;
}
// Set default compression level
if(avctx->compression_level == FF_COMPRESSION_DEFAULT)
s->compression_level = 2;
......
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