From a5baedea012935078e65cc1f8f8914c0ea3ba05b Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 25 Dec 2007 10:06:22 +0000 Subject: [PATCH] Prevent silent overwriting of files on windows. fixes issue308 untested Originally committed as revision 11315 to svn://svn.ffmpeg.org/ffmpeg/trunk --- ffmpeg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ffmpeg.c b/ffmpeg.c index 8d073d2e7e..3ed642f5fa 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -3228,6 +3228,7 @@ static void opt_output_file(const char *filename) /* 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;