# HG changeset patch # User jbr # Date 1240187648 0 # Node ID f15a920ce40ee1693407a1b0babb012879431347 # Parent 42da9ff61b3c2b5e1c45dfa3604c0c20d9312b70 ac3enc: log a warning message if the channel layout is not specified at the time of codec initialization. diff -r 42da9ff61b3c -r f15a920ce40e ac3enc.c --- a/ac3enc.c Sun Apr 19 20:41:26 2009 +0000 +++ b/ac3enc.c Mon Apr 20 00:34:08 2009 +0000 @@ -667,6 +667,11 @@ 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;