Commit c0323c81 authored by michael's avatar michael

Support longer pathes for and longer names in preset files.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13710 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent b2e25860
...@@ -3639,7 +3639,7 @@ static int opt_bsf(const char *opt, const char *arg) ...@@ -3639,7 +3639,7 @@ static int opt_bsf(const char *opt, const char *arg)
static int opt_preset(const char *opt, const char *arg) static int opt_preset(const char *opt, const char *arg)
{ {
FILE *f=NULL; FILE *f=NULL;
char tmp[100], tmp2[100]; char tmp[1000], tmp2[1000];
int i; int i;
const char *base[3]= { getenv("HOME"), const char *base[3]= { getenv("HOME"),
"/usr/local/share", "/usr/local/share",
...@@ -3664,7 +3664,7 @@ static int opt_preset(const char *opt, const char *arg) ...@@ -3664,7 +3664,7 @@ static int opt_preset(const char *opt, const char *arg)
} }
while(!feof(f)){ 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){ if(e!=2){
fprintf(stderr, "Preset file invalid\n"); fprintf(stderr, "Preset file invalid\n");
av_exit(1); av_exit(1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment