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:
439c18c
)
Support longer paths for and longer names in preset files.
author
Michael Niedermayer
<michaelni@gmx.at>
Sun, 8 Jun 2008 10:52:41 +0000
(10:52 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sun, 8 Jun 2008 10:52:41 +0000
(10:52 +0000)
Originally committed as revision 13710 to svn://svn.ffmpeg.org/ffmpeg/trunk
ffmpeg.c
patch
|
blob
|
history
diff --git
a/ffmpeg.c
b/ffmpeg.c
index afff5d9f73295448eec20b9ccc44ead12b9f4cae..48fea42b7aa410e1f6a952a331f8e8f8ef0a5741 100644
(file)
--- a/
ffmpeg.c
+++ b/
ffmpeg.c
@@
-3639,7
+3639,7
@@
static int opt_bsf(const char *opt, const char *arg)
static int opt_preset(const char *opt, const char *arg)
{
FILE *f=NULL;
- char tmp[100
], tmp2[1
00];
+ char tmp[100
0], tmp2[10
00];
int i;
const char *base[3]= { getenv("HOME"),
"/usr/local/share",
@@
-3664,7
+3664,7
@@
static int opt_preset(const char *opt, const char *arg)
}
while(!feof(f)){
- int e= fscanf(f, "%99
[^=]=%
99[^\n]\n", tmp, tmp2);
+ int e= fscanf(f, "%99
9[^=]=%9
99[^\n]\n", tmp, tmp2);
if(e!=2){
fprintf(stderr, "Preset file invalid\n");
av_exit(1);