Prevent silent overwriting of files on windows.
fixes issue308 untested Originally committed as revision 11315 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
		
							
								
								
									
										1
									
								
								ffmpeg.c
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								ffmpeg.c
									
									
									
									
									
								
							@@ -3228,6 +3228,7 @@ static void opt_output_file(const char *filename)
 | 
				
			|||||||
        /* test if it already exists to avoid loosing precious files */
 | 
					        /* test if it already exists to avoid loosing precious files */
 | 
				
			||||||
        if (!file_overwrite &&
 | 
					        if (!file_overwrite &&
 | 
				
			||||||
            (strchr(filename, ':') == NULL ||
 | 
					            (strchr(filename, ':') == NULL ||
 | 
				
			||||||
 | 
					             filename[1] == ':' ||
 | 
				
			||||||
             av_strstart(filename, "file:", NULL))) {
 | 
					             av_strstart(filename, "file:", NULL))) {
 | 
				
			||||||
            if (url_exist(filename)) {
 | 
					            if (url_exist(filename)) {
 | 
				
			||||||
                int c;
 | 
					                int c;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user