mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-12 10:00:08 +01:00
fftools/cmdutils: return AVERROR_EXIT for OPT_EXIT options instead of aborting()
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user