diff options
author | Anton Khirnov <anton@khirnov.net> | 2024-01-17 12:52:29 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2024-01-20 10:37:32 +0100 |
commit | 68af3e37ccecec74d45848bddc11e31f5ae32d02 (patch) | |
tree | e2c402abc9e2e66952bf642999ca0e4c9a4870bc /fftools | |
parent | 43323c38020665d7b5459b1ed487356c82bcb703 (diff) | |
download | ffmpeg-68af3e37ccecec74d45848bddc11e31f5ae32d02.tar.gz |
fftools/cmdutils: indicate specifiers in option syntax in help output
Diffstat (limited to 'fftools')
-rw-r--r-- | fftools/cmdutils.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fftools/cmdutils.c b/fftools/cmdutils.c index be01372743..f652820184 100644 --- a/fftools/cmdutils.c +++ b/fftools/cmdutils.c @@ -126,6 +126,12 @@ void show_help_options(const OptionDef *options, const char *msg, int req_flags, first = 0; } av_strlcpy(buf, po->name, sizeof(buf)); + + if (po->flags & OPT_FLAG_PERSTREAM) + av_strlcat(buf, "[:<stream_spec>]", sizeof(buf)); + else if (po->flags & OPT_FLAG_SPEC) + av_strlcat(buf, "[:<spec>]", sizeof(buf)); + if (po->argname) { av_strlcat(buf, " ", sizeof(buf)); av_strlcat(buf, po->argname, sizeof(buf)); |