Skip to content

Commit

Permalink
fftools/cmdutils: Switch to avfilter_filter_pad_count()
Browse files Browse the repository at this point in the history
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
  • Loading branch information
mkver committed Aug 20, 2021
1 parent 7c5f998 commit 8f72bb8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fftools/cmdutils.c
Original file line number Diff line number Diff line change
Expand Up @@ -1713,7 +1713,7 @@ int show_filters(void *optctx, const char *opt, const char *arg)
*(descr_cur++) = '>';
}
pad = i ? filter->outputs : filter->inputs;
nb_pads = avfilter_pad_count(pad);
nb_pads = avfilter_filter_pad_count(filter, i);
for (j = 0; j < nb_pads; j++) {
if (descr_cur >= descr + sizeof(descr) - 4)
break;
Expand Down Expand Up @@ -1949,7 +1949,7 @@ static void show_help_filter(const char *name)
printf(" slice threading supported\n");

printf(" Inputs:\n");
count = avfilter_pad_count(f->inputs);
count = avfilter_filter_pad_count(f, 0);
for (i = 0; i < count; i++) {
printf(" #%d: %s (%s)\n", i, avfilter_pad_get_name(f->inputs, i),
media_type_string(avfilter_pad_get_type(f->inputs, i)));
Expand All @@ -1960,7 +1960,7 @@ static void show_help_filter(const char *name)
printf(" none (source filter)\n");

printf(" Outputs:\n");
count = avfilter_pad_count(f->outputs);
count = avfilter_filter_pad_count(f, 1);
for (i = 0; i < count; i++) {
printf(" #%d: %s (%s)\n", i, avfilter_pad_get_name(f->outputs, i),
media_type_string(avfilter_pad_get_type(f->outputs, i)));
Expand Down

0 comments on commit 8f72bb8

Please sign in to comment.