OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e76c7b8
)
alacenc: do not generate invalid multi-channel ALAC files
author
Justin Ruggles
<justin.ruggles@gmail.com>
Wed, 7 Dec 2011 17:04:21 +0000
(12:04 -0500)
committer
Justin Ruggles
<justin.ruggles@gmail.com>
Tue, 3 Jan 2012 18:15:23 +0000
(13:15 -0500)
libavcodec/alacenc.c
patch
|
blob
|
history
diff --git
a/libavcodec/alacenc.c
b/libavcodec/alacenc.c
index
7e29a24
..
e7977b3
100644
(file)
--- a/
libavcodec/alacenc.c
+++ b/
libavcodec/alacenc.c
@@
-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;