1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-06-20 06:16:02 +02:00

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

@ -320,7 +320,7 @@ static int write_option(void *optctx, const OptionDef *po, const char *opt,
}
}
if (po->flags & OPT_EXIT)
exit_program(0);
return AVERROR_EXIT;
return 0;
}