diff options
author | Anton Khirnov <anton@khirnov.net> | 2013-03-28 08:59:13 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2013-04-11 20:43:47 +0200 |
commit | 7e8fe4be5fb4c98aa3c6a4ed3cec999f4e3cc3aa (patch) | |
tree | ffc4b54bef0847a945ec4aa2cd834015b7035bc7 /libavfilter/avfilter.h | |
parent | 7cdd737ba81b5c2c9521c4509edf0ac315fabc65 (diff) | |
download | ffmpeg-7e8fe4be5fb4c98aa3c6a4ed3cec999f4e3cc3aa.tar.gz |
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.h | 6 |
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 |