diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2007-12-25 10:06:22 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2007-12-25 10:06:22 +0000 |
commit | a5baedea012935078e65cc1f8f8914c0ea3ba05b (patch) | |
tree | 1dba3f6ac9d920f59c438a2dca42083ca40b925a /ffmpeg.c | |
parent | 7dc75e8d4375a36a6a19a050f2bee6bd76c7a912 (diff) | |
download | ffmpeg-a5baedea012935078e65cc1f8f8914c0ea3ba05b.tar.gz |
Prevent silent overwriting of files on windows.
fixes issue308
untested
Originally committed as revision 11315 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |