Commit 221cf68d authored by michael's avatar michael

Support loading presets from random pathes.

Fixes issue659.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@15443 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 9c0e4748
...@@ -3740,6 +3740,9 @@ static int opt_preset(const char *opt, const char *arg) ...@@ -3740,6 +3740,9 @@ static int opt_preset(const char *opt, const char *arg)
f= fopen(tmp, "r"); f= fopen(tmp, "r");
} }
} }
if(!f && ((arg[0]=='.' && arg[1]=='/') || arg[0]=='/')){
f= fopen(arg, "r");
}
if(!f){ if(!f){
fprintf(stderr, "Preset file not found\n"); fprintf(stderr, "Preset file not found\n");
......
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