mirror of
https://git.videolan.org/git/ffmpeg.git
synced 2024-08-19 07:45:05 +02:00
alacenc: do not generate invalid multi-channel ALAC files
This commit is contained in:
parent
e76c7b856f
commit
149e1b0468
@ -391,6 +391,14 @@ static av_cold int alac_encode_init(AVCodecContext *avctx)
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* TODO: Correctly implement multi-channel ALAC.
|
||||
It is similar to multi-channel AAC, in that it has a series of
|
||||
single-channel (SCE), channel-pair (CPE), and LFE elements. */
|
||||
if (avctx->channels > 2) {
|
||||
av_log(avctx, AV_LOG_ERROR, "only mono or stereo input is currently supported\n");
|
||||
return AVERROR_PATCHWELCOME;
|
||||
}
|
||||
|
||||
// Set default compression level
|
||||
if (avctx->compression_level == FF_COMPRESSION_DEFAULT)
|
||||
s->compression_level = 2;
|
||||
|
Loading…
Reference in New Issue
Block a user