From 7e8fe4be5fb4c98aa3c6a4ed3cec999f4e3cc3aa Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Thu, 28 Mar 2013 08:59:13 +0100 Subject: lavfi: add a function for counting elements in AVFilterPad arrays. The caller needs to know what valid indices can be passed to avfilter_pad_get_name/type. --- libavfilter/avfilter.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libavfilter/avfilter.h') diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h index dd29ec0564..73dbd886fc 100644 --- a/libavfilter/avfilter.h +++ b/libavfilter/avfilter.h @@ -350,6 +350,12 @@ struct AVFilterPad { }; #endif +/** + * Get the number of elements in a NULL-terminated array of AVFilterPads (e.g. + * AVFilter.inputs/outputs). + */ +int avfilter_pad_count(const AVFilterPad *pads); + /** * Get the name of an AVFilterPad. * -- cgit v1.2.3