mirror of
				https://github.com/nyanmisaka/ffmpeg-rockchip.git
				synced 2025-10-31 12:36:41 +08:00 
			
		
		
		
	Make ffmpeg warns the user when the selected sample format is ignored.
Signed-off-by: Mans Rullgard <mans@mansr.com>
This commit is contained in:
		 Stefano Sabatini
					Stefano Sabatini
				
			
				
					committed by
					
						 Mans Rullgard
						Mans Rullgard
					
				
			
			
				
	
			
			
			 Mans Rullgard
						Mans Rullgard
					
				
			
						parent
						
							73be29b0c4
						
					
				
				
					commit
					fa34a3626c
				
			
							
								
								
									
										8
									
								
								ffmpeg.c
									
									
									
									
									
								
							
							
						
						
									
										8
									
								
								ffmpeg.c
									
									
									
									
									
								
							| @@ -600,8 +600,14 @@ static void choose_sample_fmt(AVStream *st, AVCodec *codec) | |||||||
|             if(*p == st->codec->sample_fmt) |             if(*p == st->codec->sample_fmt) | ||||||
|                 break; |                 break; | ||||||
|         } |         } | ||||||
|         if(*p == -1) |         if (*p == -1) { | ||||||
|  |             av_log(NULL, AV_LOG_WARNING, | ||||||
|  |                    "Incompatible sample format '%s' for codec '%s', auto-selecting format '%s'\n", | ||||||
|  |                    av_get_sample_fmt_name(st->codec->sample_fmt), | ||||||
|  |                    codec->name, | ||||||
|  |                    av_get_sample_fmt_name(codec->sample_fmts[0])); | ||||||
|             st->codec->sample_fmt = codec->sample_fmts[0]; |             st->codec->sample_fmt = codec->sample_fmts[0]; | ||||||
|  |         } | ||||||
|     } |     } | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user