aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2011-05-21 01:11:42 +0200
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2011-05-21 01:11:42 +0200
commit007f773942e5c8f39e9ad880d8e7e71f8f3bf7d2 (patch)
tree581a7851e956c2b1c76917d2f932949621abe9de
parentf1b3f33d48b366dd7b3b915b4de90d9ad4c4ae39 (diff)
downloadffmpeg-007f773942e5c8f39e9ad880d8e7e71f8f3bf7d2.tar.gz
Encoding alac with more than two channels is not supported.
-rw-r--r--libavcodec/alacenc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/alacenc.c b/libavcodec/alacenc.c
index c3a1fdfa03..bb618e16f2 100644
--- a/libavcodec/alacenc.c
+++ b/libavcodec/alacenc.c
@@ -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;