projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a8b763
)
Support loading presets from random paths.
author
Michael Niedermayer
<michaelni@gmx.at>
Sun, 28 Sep 2008 13:09:29 +0000
(13:09 +0000)
committer
Michael 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
patch
|
blob
|
history
diff --git
a/ffmpeg.c
b/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");