comparison ac3enc.c @ 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 24532a2d9d2c
children c78fd9154378
comparison
equal deleted inserted replaced
9515:42da9ff61b3c 9516:f15a920ce40e
665 665
666 avctx->frame_size = AC3_FRAME_SIZE; 666 avctx->frame_size = AC3_FRAME_SIZE;
667 667
668 ac3_common_init(); 668 ac3_common_init();
669 669
670 if (!avctx->channel_layout) {
671 av_log(avctx, AV_LOG_WARNING, "No channel layout specified. The "
672 "encoder will guess the layout, but it "
673 "might be incorrect.\n");
674 }
670 if (set_channel_info(s, avctx->channels, &avctx->channel_layout)) { 675 if (set_channel_info(s, avctx->channels, &avctx->channel_layout)) {
671 av_log(avctx, AV_LOG_ERROR, "invalid channel layout\n"); 676 av_log(avctx, AV_LOG_ERROR, "invalid channel layout\n");
672 return -1; 677 return -1;
673 } 678 }
674 679