]> git.sesse.net Git - ffmpeg/commitdiff
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 c7ea0f0746e6950dce8cff1d204161afb629c24a..cb72c4314d3f0fa33f74b8b0e86c22d0104900c5 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");