The caller needs to know what valid indices can be passed to avfilter_pad_get_name/type.
Showing the changes to libavfilter/avfilter.h (1 of 3 files). Show all
Unified · Split
| @@ -350,6 +350,12 @@ struct AVFilterPad { · 349 unmodified lines | ||
| 350 | 350 | }; |
| 351 | 351 | #endif |
| 352 | 352 | |
| 353 | +/** | |
| 354 | + * Get the number of elements in a NULL-terminated array of AVFilterPads (e.g. | |
| 355 | + * AVFilter.inputs/outputs). | |
| 356 | + */ | |
| 357 | +int avfilter_pad_count(const AVFilterPad *pads); | |
| 358 | + | |
| 353 | 359 | /** |
| 354 | 360 | * Get the name of an AVFilterPad. |
| 355 | 361 | * |