You've already forked FFmpeg
							
							
				mirror of
				https://github.com/FFmpeg/FFmpeg.git
				synced 2025-10-30 23:18:11 +02:00 
			
		
		
		
	Make ffmpeg print in the error message the exact line of a preset file
containing an invalid syntax. Originally committed as revision 15902 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
		
							
								
								
									
										2
									
								
								ffmpeg.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								ffmpeg.c
									
									
									
									
									
								
							| @@ -3704,7 +3704,7 @@ static int opt_preset(const char *opt, const char *arg) | ||||
|             continue; | ||||
|         e|= sscanf(line, "%999[^=]=%999[^\n]\n", tmp, tmp2) - 2; | ||||
|         if(e){ | ||||
|             fprintf(stderr, "%s: Preset file invalid\n", filename); | ||||
|             fprintf(stderr, "%s: Invalid syntax: '%s'\n", filename, line); | ||||
|             av_exit(1); | ||||
|         } | ||||
|         if(!strcmp(tmp, "acodec")){ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user