diff mbox series

[FFmpeg-devel,17/20] fftools/ffmpeg_opt: print a section for data-stream options

Message ID 20231218095722.25879-17-anton@khirnov.net
State Accepted
Commit 84352c989198935f76a189e355c8f3848049caf8
Headers show
Series [FFmpeg-devel,01/20] fftools/ffmpeg_filter: only set framerate for video | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Anton Khirnov Dec. 18, 2023, 9:57 a.m. UTC
Only show it with show_advanced (triggered by -h long), since data
streams themselves are an advanced topic.
---
 fftools/ffmpeg_opt.c | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/fftools/ffmpeg_opt.c b/fftools/ffmpeg_opt.c
index c8fb9d03e4..87357e8b64 100644
--- a/fftools/ffmpeg_opt.c
+++ b/fftools/ffmpeg_opt.c
@@ -1239,6 +1239,10 @@  void show_help_default(const char *opt, const char *arg)
     if (show_advanced)
         show_help_options(options, "Advanced Subtitle options:",
                           OPT_EXPERT | OPT_SUBTITLE, OPT_VIDEO | OPT_AUDIO | OPT_DATA, 0);
+
+    if (show_advanced)
+        show_help_options(options, "Data stream options:",
+                          OPT_DATA, OPT_VIDEO | OPT_AUDIO | OPT_SUBTITLE, 0);
     printf("\n");
 
     if (show_avoptions) {