diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2009-04-20 04:34:08 +0400 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2009-04-20 04:34:08 +0400 |
commit | be1efe5993483374566ba4993b1bd95eb2ef9a19 (patch) | |
tree | 629fb2c76633b881665a69945a4f09ca3a26905f /libavcodec/ac3enc.c | |
parent | 26534fe84742462f76710bda9c120cdde73a2cbf (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.c | 5 |
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; |