[FFmpeg-cvslog] r18631 - trunk/libavcodec/ac3enc.c
jbr
subversion
Mon Apr 20 02:34:08 CEST 2009
Author: jbr
Date: Mon Apr 20 02:34:08 2009
New Revision: 18631
Log:
ac3enc: log a warning message if the channel layout is not specified at
the time of codec initialization.
Modified:
trunk/libavcodec/ac3enc.c
Modified: trunk/libavcodec/ac3enc.c
==============================================================================
--- trunk/libavcodec/ac3enc.c Sun Apr 19 23:44:25 2009 (r18630)
+++ trunk/libavcodec/ac3enc.c Mon Apr 20 02:34:08 2009 (r18631)
@@ -667,6 +667,11 @@ static av_cold int AC3_encode_init(AVCod
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;
More information about the ffmpeg-cvslog
mailing list