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

@@ -3657,7 +3657,7 @@ int main(int argc, char **argv)
ret = parse_options(NULL, argc, argv, options, opt_input_file);
if (ret < 0)
exit(1);
exit(ret == AVERROR_EXIT ? 0 : 1);
if (!input_filename) {
show_usage();