Support loading presets from random paths.
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 28 Sep 2008 13:09:29 +0000 (13:09 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 28 Sep 2008 13:09:29 +0000 (13:09 +0000)
Fixes issue659.

Originally committed as revision 15443 to svn://svn.ffmpeg.org/ffmpeg/trunk

ffmpeg.c

index c7ea0f0..cb72c43 100644 (file)
--- a/ffmpeg.c
+++ b/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");