Message ID | 20240117124036.7877-5-anton@khirnov.net |
---|---|
State | Accepted |
Commit | 68af3e37ccecec74d45848bddc11e31f5ae32d02 |
Headers | show |
Series | [FFmpeg-devel,1/8] fftools/cmdutils: hide some information listing options from basic help | expand |
Context | Check | Description |
---|---|---|
andriy/configure_x86 | warning | Failed to apply patch |
yinshiyou/configure_loongarch64 | warning | Failed to apply patch |
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));