[SCM] libav/experimental: Prevent silent overwriting of files on windows. fixes issue308 untested
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 16:10:53 UTC 2013
The following commit has been merged in the experimental branch:
commit a5baedea012935078e65cc1f8f8914c0ea3ba05b
Author: Michael Niedermayer <michaelni at gmx.at>
Date: Tue Dec 25 10:06:22 2007 +0000
Prevent silent overwriting of files on windows.
fixes issue308
untested
Originally committed as revision 11315 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/ffmpeg.c b/ffmpeg.c
index 8d073d2..3ed642f 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;
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list