Commit 800bd9a3 authored by jbr's avatar jbr

ac3enc: log a warning message if the channel layout is not specified at

the time of codec initialization.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18631 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 743a3a1a
...@@ -667,6 +667,11 @@ static av_cold int AC3_encode_init(AVCodecContext *avctx) ...@@ -667,6 +667,11 @@ static av_cold int AC3_encode_init(AVCodecContext *avctx)
ac3_common_init(); 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)) { if (set_channel_info(s, avctx->channels, &avctx->channel_layout)) {
av_log(avctx, AV_LOG_ERROR, "invalid channel layout\n"); av_log(avctx, AV_LOG_ERROR, "invalid channel layout\n");
return -1; return -1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment