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:
parent
7a8b7634c5
commit
4e72f129c3
1 changed files with 3 additions and 0 deletions
3
ffmpeg.c
3
ffmpeg.c
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue