Mercurial > libavcodec.hg
changeset 9516:f15a920ce40e libavcodec
ac3enc: log a warning message if the channel layout is not specified at
the time of codec initialization.
author | jbr |
---|---|
date | Mon, 20 Apr 2009 00:34:08 +0000 |
parents | 42da9ff61b3c |
children | dcae1f330498 |
files | ac3enc.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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;