diff options
author | Anton Khirnov <anton@khirnov.net> | 2023-07-14 16:43:51 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2023-07-20 20:47:46 +0200 |
commit | 39d5104332b1e78cb8e2d34dde072d3732d2eca1 (patch) | |
tree | a3a67e567b68af87f08fe7c8cfa4c0a28a802659 /fftools/cmdutils.h | |
parent | 49ac7fc48566a5cc33c0cd1a2806251fddb52a03 (diff) | |
download | ffmpeg-39d5104332b1e78cb8e2d34dde072d3732d2eca1.tar.gz |
fftools: handle errors in parse_options()
Diffstat (limited to 'fftools/cmdutils.h')
-rw-r--r-- | fftools/cmdutils.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fftools/cmdutils.h b/fftools/cmdutils.h index ff1b0f2e84..621c5fbe86 100644 --- a/fftools/cmdutils.h +++ b/fftools/cmdutils.h @@ -194,8 +194,8 @@ void show_help_default(const char *opt, const char *arg); * argument without a leading option name flag. NULL if such arguments do * not have to be processed. */ -void parse_options(void *optctx, int argc, char **argv, const OptionDef *options, - void (* parse_arg_function)(void *optctx, const char*)); +int parse_options(void *optctx, int argc, char **argv, const OptionDef *options, + int (* parse_arg_function)(void *optctx, const char*)); /** * Parse one given option. |