diff options
author | Anton Khirnov <anton@khirnov.net> | 2023-07-14 18:15:27 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2023-07-20 20:47:46 +0200 |
commit | eda1fac27afdaaf646d9c84e6f2cea407764fbf2 (patch) | |
tree | 34c4e6e2b1feb8371e69b6d2fb46b9b2a7e1dd1c /fftools/ffprobe.c | |
parent | 8173623e39cc72866eaaac13538e160f226b0a23 (diff) |
fftools/cmdutils: return AVERROR_EXIT for OPT_EXIT options instead of aborting()
Diffstat (limited to 'fftools/ffprobe.c')
-rw-r--r-- | fftools/ffprobe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fftools/ffprobe.c b/fftools/ffprobe.c index da8fc89830..c83d20995e 100644 --- a/fftools/ffprobe.c +++ b/fftools/ffprobe.c @@ -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); |