aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-06-08 10:52:41 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-06-08 10:52:41 +0000
commite66ace6f0bec058ea9592fad6fff319d7f6fa65e (patch)
tree40d88e368c3a15029943def8525f7c414f6ec49e
parent439c18c75da4b018f49ddba3049a49930cc8ea88 (diff)
downloadffmpeg-e66ace6f0bec058ea9592fad6fff319d7f6fa65e.tar.gz
Support longer paths for and longer names in preset files.
Originally committed as revision 13710 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--ffmpeg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index afff5d9f73..48fea42b7a 100644
--- 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[100];
+ char tmp[1000], tmp2[1000];
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, "%999[^=]=%999[^\n]\n", tmp, tmp2);
if(e!=2){
fprintf(stderr, "Preset file invalid\n");
av_exit(1);