From 4e72f129c3cbd51b452b1676146fb85af089475a Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 28 Sep 2008 13:09:29 +0000 Subject: [PATCH] Support loading presets from random paths. Fixes issue659. Originally committed as revision 15443 to svn://svn.ffmpeg.org/ffmpeg/trunk --- ffmpeg.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ffmpeg.c b/ffmpeg.c index c7ea0f0746..cb72c4314d 100644 --- 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");