Skip to content

Commit

Permalink
cmdutils: make the "-help filter=" output less confusing
Browse files Browse the repository at this point in the history
Example:
Filter overlay
  Overlay a video source on top of the input.
    Inputs:
       #0: main (video)
       #1: overlay (video)
    Outputs:
       #0: default (video)

Signed-off-by: Michael Niedermayer <[email protected]>
  • Loading branch information
michaelni committed Apr 18, 2013
1 parent 99818ac commit 978e373
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmdutils.c
Original file line number Diff line number Diff line change
Expand Up @@ -1661,7 +1661,7 @@ static void show_help_filter(const char *name)
printf(" Inputs:\n");
count = avfilter_pad_count(f->inputs);
for (i = 0; i < count; i++) {
printf(" %d %s (%s)\n", i, avfilter_pad_get_name(f->inputs, i),
printf(" #%d: %s (%s)\n", i, avfilter_pad_get_name(f->inputs, i),
media_type_string(avfilter_pad_get_type(f->inputs, i)));
}
if (f->flags & AVFILTER_FLAG_DYNAMIC_INPUTS)
Expand All @@ -1672,7 +1672,7 @@ static void show_help_filter(const char *name)
printf(" Outputs:\n");
count = avfilter_pad_count(f->outputs);
for (i = 0; i < count; i++) {
printf(" %d %s (%s)\n", i, avfilter_pad_get_name(f->outputs, i),
printf(" #%d: %s (%s)\n", i, avfilter_pad_get_name(f->outputs, i),
media_type_string(avfilter_pad_get_type(f->outputs, i)));
}
if (f->flags & AVFILTER_FLAG_DYNAMIC_OUTPUTS)
Expand Down

0 comments on commit 978e373

Please sign in to comment.