Browse Source

Support longer paths for and longer names in preset files.

Originally committed as revision 13710 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Michael Niedermayer 17 years ago
parent
commit
e66ace6f0b
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      ffmpeg.c

+ 2
- 2
ffmpeg.c View File

@@ -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);


Loading…
Cancel
Save