Commit cbb7966b authored by stefano's avatar stefano

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

containing an invalid option or value, and also how the option and the
value have been parsed.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@15903 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent b8504c79
......@@ -3714,7 +3714,7 @@ static int opt_preset(const char *opt, const char *arg)
}else if(!strcmp(tmp, "scodec")){
opt_subtitle_codec(tmp2);
}else if(opt_default(tmp, tmp2) < 0){
fprintf(stderr, "%s: Invalid option or argument: %s=%s\n", filename, tmp, tmp2);
fprintf(stderr, "%s: Invalid option or argument: '%s', parsed as '%s' = '%s'\n", filename, line, tmp, tmp2);
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