summaryrefslogtreecommitdiff
path: root/libavfilter/avfilter.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2013-03-28 08:59:13 +0100
committerAnton Khirnov <anton@khirnov.net>2013-04-11 20:43:47 +0200
commit7e8fe4be5fb4c98aa3c6a4ed3cec999f4e3cc3aa (patch)
treeffc4b54bef0847a945ec4aa2cd834015b7035bc7 /libavfilter/avfilter.h
parent7cdd737ba81b5c2c9521c4509edf0ac315fabc65 (diff)
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.
Diffstat (limited to 'libavfilter/avfilter.h')
-rw-r--r--libavfilter/avfilter.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h
index dd29ec0564..73dbd886fc 100644
--- a/libavfilter/avfilter.h
+++ b/libavfilter/avfilter.h
@@ -351,6 +351,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.
*
* @param pads an array of AVFilterPads