summaryrefslogtreecommitdiff
path: root/libavcodec/ac3enc.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2009-04-20 00:34:08 +0000
committerJustin Ruggles <justin.ruggles@gmail.com>2009-04-20 00:34:08 +0000
commitbe1efe5993483374566ba4993b1bd95eb2ef9a19 (patch)
tree629fb2c76633b881665a69945a4f09ca3a26905f /libavcodec/ac3enc.c
parent26534fe84742462f76710bda9c120cdde73a2cbf (diff)
ac3enc: log a warning message if the channel layout is not specified at
the time of codec initialization. Originally committed as revision 18631 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ac3enc.c')
-rw-r--r--libavcodec/ac3enc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/ac3enc.c b/libavcodec/ac3enc.c
index 8714da00cf..7d12e04b30 100644
--- a/libavcodec/ac3enc.c
+++ b/libavcodec/ac3enc.c
@@ -667,6 +667,11 @@ static av_cold int AC3_encode_init(AVCodecContext *avctx)
ac3_common_init();
+ if (!avctx->channel_layout) {
+ av_log(avctx, AV_LOG_WARNING, "No channel layout specified. The "
+ "encoder will guess the layout, but it "
+ "might be incorrect.\n");
+ }
if (set_channel_info(s, avctx->channels, &avctx->channel_layout)) {
av_log(avctx, AV_LOG_ERROR, "invalid channel layout\n");
return -1;