This is more consistent with naming in the rest of Libav.
Showing the changes to libavfilter/avfilter.h (1 of 13 files). Show all
Unified · Split
| @@ -488,15 +488,22 @@ struct AVFilterContext { · 487 unmodified lines | ||
| 488 | 488 | |
| 489 | 489 | char *name; ///< name of this filter instance |
| 490 | 490 | |
| 491 | − unsigned input_count; ///< number of input pads | |
| 491 | +#if FF_API_FOO_COUNT | |
| 492 | + unsigned input_count; ///< @deprecated use nb_inputs | |
| 493 | +#endif | |
| 492 | 494 | AVFilterPad *input_pads; ///< array of input pads |
| 493 | 495 | AVFilterLink **inputs; ///< array of pointers to input links |
| 494 | 496 | |
| 495 | − unsigned output_count; ///< number of output pads | |
| 497 | +#if FF_API_FOO_COUNT | |
| 498 | + unsigned output_count; ///< @deprecated use nb_outputs | |
| 499 | +#endif | |
| 496 | 500 | AVFilterPad *output_pads; ///< array of output pads |
| 497 | 501 | AVFilterLink **outputs; ///< array of pointers to output links |
| 498 | 502 | |
| 499 | 503 | void *priv; ///< private data for use by the filter |
| 504 | + | |
| 505 | + unsigned nb_inputs; ///< number of input pads | |
| 506 | + unsigned nb_outputs; ///< number of output pads | |
| 500 | 507 | }; |
| 501 | 508 | |
| 502 | 509 | /** |