Support loading presets from random paths.

Fixes issue659.

Originally committed as revision 15443 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2008-09-28 13:09:29 +00:00
parent 7a8b7634c5
commit 4e72f129c3

View File

@ -3740,6 +3740,9 @@ static int opt_preset(const char *opt, const char *arg)
f= fopen(tmp, "r");
}
}
if(!f && ((arg[0]=='.' && arg[1]=='/') || arg[0]=='/')){
f= fopen(arg, "r");
}
if(!f){
fprintf(stderr, "Preset file not found\n");