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

@@ -1345,7 +1345,7 @@ int ffmpeg_parse_options(int argc, char **argv)
fail:
uninit_parse_context(&octx);
if (ret < 0) {
if (ret < 0 && ret != AVERROR_EXIT) {
av_log(NULL, AV_LOG_FATAL, "Error %s: %s\n",
errmsg ? errmsg : "", av_err2str(ret));
}