Commit b8504c79 authored by stefano's avatar stefano

Make ffmpeg print in the error message the exact line of a preset file

containing an invalid syntax.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@15902 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 8aed578e
...@@ -3704,7 +3704,7 @@ static int opt_preset(const char *opt, const char *arg) ...@@ -3704,7 +3704,7 @@ static int opt_preset(const char *opt, const char *arg)
continue; continue;
e|= sscanf(line, "%999[^=]=%999[^\n]\n", tmp, tmp2) - 2; e|= sscanf(line, "%999[^=]=%999[^\n]\n", tmp, tmp2) - 2;
if(e){ if(e){
fprintf(stderr, "%s: Preset file invalid\n", filename); fprintf(stderr, "%s: Invalid syntax: '%s'\n", filename, line);
av_exit(1); av_exit(1);
} }
if(!strcmp(tmp, "acodec")){ if(!strcmp(tmp, "acodec")){
......
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