mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-24 02:21:11 +01:00
fftools/cmdutils: return AVERROR_EXIT for OPT_EXIT options instead of aborting()
This commit is contained in:
parent
8173623e39
commit
eda1fac27a
5 changed files with 7 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue