Unified · Split
| @@ -1713,7 +1713,7 @@ int show_filters(void *optctx, const char *opt, const char *arg) · 1712 unmodified lines | |||
| 1713 | *(descr_cur++) = '>'; | 1713 | *(descr_cur++) = '>'; |
| 1714 | } | 1714 | } |
| 1715 | pad = i ? filter->outputs : filter->inputs; | 1715 | pad = i ? filter->outputs : filter->inputs; |
| 1716 | nb_pads = avfilter_pad_count(pad); | 1716 | nb_pads = avfilter_filter_pad_count(filter, i); |
| 1717 | for (j = 0; j < nb_pads; j++) { | 1717 | for (j = 0; j < nb_pads; j++) { |
| 1718 | if (descr_cur >= descr + sizeof(descr) - 4) | 1718 | if (descr_cur >= descr + sizeof(descr) - 4) |
| 1719 | break; | 1719 | break; |
| @@ -1949,7 +1949,7 @@ static void show_help_filter(const char *name) · 229 unmodified lines | |||
| 1949 | printf(" slice threading supported\n"); | 1949 | printf(" slice threading supported\n"); |
| 1950 | 1950 | ||
| 1951 | printf(" Inputs:\n"); | 1951 | printf(" Inputs:\n"); |
| 1952 | count = avfilter_pad_count(f->inputs); | 1952 | count = avfilter_filter_pad_count(f, 0); |
| 1953 | for (i = 0; i < count; i++) { | 1953 | for (i = 0; i < count; i++) { |
| 1954 | printf(" #%d: %s (%s)\n", i, avfilter_pad_get_name(f->inputs, i), | 1954 | printf(" #%d: %s (%s)\n", i, avfilter_pad_get_name(f->inputs, i), |
| 1955 | media_type_string(avfilter_pad_get_type(f->inputs, i))); | 1955 | media_type_string(avfilter_pad_get_type(f->inputs, i))); |
| @@ -1960,7 +1960,7 @@ static void show_help_filter(const char *name) · 4 unmodified lines | |||
| 1960 | printf(" none (source filter)\n"); | 1960 | printf(" none (source filter)\n"); |
| 1961 | 1961 | ||
| 1962 | printf(" Outputs:\n"); | 1962 | printf(" Outputs:\n"); |
| 1963 | count = avfilter_pad_count(f->outputs); | 1963 | count = avfilter_filter_pad_count(f, 1); |
| 1964 | for (i = 0; i < count; i++) { | 1964 | for (i = 0; i < count; i++) { |
| 1965 | printf(" #%d: %s (%s)\n", i, avfilter_pad_get_name(f->outputs, i), | 1965 | printf(" #%d: %s (%s)\n", i, avfilter_pad_get_name(f->outputs, i), |
| 1966 | media_type_string(avfilter_pad_get_type(f->outputs, i))); | 1966 | media_type_string(avfilter_pad_get_type(f->outputs, i))); |