* commit '7e8fe4be5fb4c98aa3c6a4ed3cec999f4e3cc3aa': lavfi: add a function for counting elements in AVFilterPad arrays.
Showing the changes to libavfilter/avfilter.h (1 of 3 files). Show all
Unified · Split
| @@ -388,6 +388,12 @@ struct AVFilterPad { · 387 unmodified lines | ||
| 388 | 388 | }; |
| 389 | 389 | #endif |
| 390 | 390 | |
| 391 | +/** | |
| 392 | + * Get the number of elements in a NULL-terminated array of AVFilterPads (e.g. | |
| 393 | + * AVFilter.inputs/outputs). | |
| 394 | + */ | |
| 395 | +int avfilter_pad_count(const AVFilterPad *pads); | |
| 396 | + | |
| 391 | 397 | /** |
| 392 | 398 | * Get the name of an AVFilterPad. |
| 393 | 399 | * |