Browse Source

Support loading presets from random paths.

Fixes issue659.

Originally committed as revision 15443 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Michael Niedermayer 17 years ago
parent
commit
4e72f129c3
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      ffmpeg.c

+ 3
- 0
ffmpeg.c 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");


Loading…
Cancel
Save