fftools/cmdutils: return AVERROR_EXIT for OPT_EXIT options instead of aborting()

This commit is contained in:
Anton Khirnov 2023-07-14 18:15:27 +02:00
parent 8173623e39
commit eda1fac27a
5 changed files with 7 additions and 4 deletions

View file

@ -4129,7 +4129,7 @@ int main(int argc, char **argv)
show_banner(argc, argv, options);
ret = parse_options(NULL, argc, argv, options, opt_input_file);
if (ret < 0)
exit_program(1);
exit_program(ret == AVERROR_EXIT ? 0 : 1);
if (do_show_log)
av_log_set_callback(log_callback);