summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorRamiro Polla <ramiro.polla@gmail.com>2008-10-15 14:12:59 +0000
committerRamiro Polla <ramiro.polla@gmail.com>2008-10-15 14:12:59 +0000
commit3ddb448d0a31f63004b1e7aab1dc113e4b29a6fa (patch)
tree0f7109996650339f902c11a1a102b1358a74c247 /ffmpeg.c
parentc49d0e0fe2d5e06f015cc473cf90232ce0ff0f69 (diff)
downloadffmpeg-3ddb448d0a31f63004b1e7aab1dc113e4b29a6fa.tar.gz
Support absolute DOS paths for preset parameters
Originally committed as revision 15624 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 40da0f3937..bad954bafb 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -3685,7 +3685,8 @@ static int opt_preset(const char *opt, const char *arg)
f= fopen(tmp, "r");
}
}
- if(!f && ((arg[0]=='.' && arg[1]=='/') || arg[0]=='/')){
+ if(!f && ((arg[0]=='.' && arg[1]=='/') || arg[0]=='/' ||
+ is_dos_path(arg))){
f= fopen(arg, "r");
}