You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	ac3enc: log a warning message if the channel layout is not specified at
the time of codec initialization. Originally committed as revision 18631 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
		| @@ -667,6 +667,11 @@ static av_cold int AC3_encode_init(AVCodecContext *avctx) | ||||
|  | ||||
|     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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user