summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c3
1 files changed, 3 insertions, 0 deletions
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");