Commit 8684890e authored by michael's avatar michael

Prevent silent overwriting of files on windows.

fixes issue308
untested


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@11315 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 354e0e6f
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment