diff mbox

[FFmpeg-devel,V1] fftools/cmdutils: Fix break command dump for -map option

Message ID 1576167587-13659-1-git-send-email-mypopydev@gmail.com
State Accepted
Commit c1e215041bb4feeb17fc1d16d5c651ca6d35ad84
Headers show

Commit Message

Jun Zhao Dec. 12, 2019, 4:19 p.m. UTC
From: Jun Zhao <barryjzhao@tencent.com>

Before this fix, ffmpeg -h full | grep map get the command dump
like:

-map [-]input_file_id[:stream_specifier][,sync_file_id[:stream_s  set input stream mapping
                                                               ^
                                                               |
							    truncated
after this fix, we can get full option dump.

Found-by: vacingfang <vacingfang@tencent.com>
Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
---
 fftools/cmdutils.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

mypopy@gmail.com Dec. 17, 2019, 10:42 a.m. UTC | #1
On Fri, Dec 13, 2019 at 12:20 AM Jun Zhao <mypopydev@gmail.com> wrote:
>
> From: Jun Zhao <barryjzhao@tencent.com>
>
> Before this fix, ffmpeg -h full | grep map get the command dump
> like:
>
> -map [-]input_file_id[:stream_specifier][,sync_file_id[:stream_s  set input stream mapping
>                                                                ^
>                                                                |
>                                                             truncated
> after this fix, we can get full option dump.
>
> Found-by: vacingfang <vacingfang@tencent.com>
> Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
> ---
>  fftools/cmdutils.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/fftools/cmdutils.c b/fftools/cmdutils.c
> index 84f98b7..8321faa 100644
> --- a/fftools/cmdutils.c
> +++ b/fftools/cmdutils.c
> @@ -182,7 +182,7 @@ void show_help_options(const OptionDef *options, const char *msg, int req_flags,
>
>      first = 1;
>      for (po = options; po->name; po++) {
> -        char buf[64];
> +        char buf[128];
>
>          if (((po->flags & req_flags) != req_flags) ||
>              (alt_flags && !(po->flags & alt_flags)) ||
> --
> 1.7.1
>
ping ?
diff mbox

Patch

diff --git a/fftools/cmdutils.c b/fftools/cmdutils.c
index 84f98b7..8321faa 100644
--- a/fftools/cmdutils.c
+++ b/fftools/cmdutils.c
@@ -182,7 +182,7 @@  void show_help_options(const OptionDef *options, const char *msg, int req_flags,
 
     first = 1;
     for (po = options; po->name; po++) {
-        char buf[64];
+        char buf[128];
 
         if (((po->flags & req_flags) != req_flags) ||
             (alt_flags && !(po->flags & alt_flags)) ||