1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

Support absolute DOS paths for preset parameters

Originally committed as revision 15624 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Ramiro Polla 2008-10-15 14:12:59 +00:00
parent c49d0e0fe2
commit 3ddb448d0a

View File

@ -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");
}