[FFmpeg-cvslog] r11315 - trunk/ffmpeg.c

michael subversion
Tue Dec 25 11:06:22 CET 2007


Author: michael
Date: Tue Dec 25 11:06:22 2007
New Revision: 11315

Log:
Prevent silent overwriting of files on windows.
fixes issue308
untested


Modified:
   trunk/ffmpeg.c

Modified: trunk/ffmpeg.c
==============================================================================
--- trunk/ffmpeg.c	(original)
+++ trunk/ffmpeg.c	Tue Dec 25 11:06:22 2007
@@ -3228,6 +3228,7 @@ static void opt_output_file(const char *
         /* test if it already exists to avoid loosing precious files */
         if (!file_overwrite &&
             (strchr(filename, ':') == NULL ||
+             filename[1] == ':' ||
              av_strstart(filename, "file:", NULL))) {
             if (url_exist(filename)) {
                 int c;




More information about the ffmpeg-cvslog mailing list