Commit e6e5f781 authored by stefano's avatar stefano

Make opt_default() print an error message and exit if the option

supplied is not recognized.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@21960 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 1b50877c
......@@ -214,8 +214,10 @@ int opt_default(const char *opt, const char *arg){
fprintf(stderr, "Invalid value '%s' for option '%s'\n", arg, opt);
exit(1);
}
if(!o)
return -1;
if (!o) {
fprintf(stderr, "Unrecognized option '%s'\n", opt);
exit(1);
}
// av_log(NULL, AV_LOG_ERROR, "%s:%s: %f 0x%0X\n", opt, arg, av_get_double(avcodec_opts, opt, NULL), (int)av_get_int(avcodec_opts, opt, NULL));
......
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