diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-06-11 15:30:46 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2012-04-14 09:25:46 +0200 |
commit | 91d3cbe0fde05c45837649c213de879c8d85aa67 (patch) | |
tree | d3e0fc70a6c72a4b8ebd2d3f640a87c109d7467b /libavfilter/avfiltergraph.h | |
parent | 12e7e1d03e772b16ae95fa6c79ed870d9335564c (diff) | |
download | ffmpeg-91d3cbe0fde05c45837649c213de879c8d85aa67.tar.gz |
avfiltergraph: make the AVFilterInOut alloc/free API public
This is required for letting applications to create and destroy
AVFilterInOut structs in a convenient way.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavfilter/avfiltergraph.h')
-rw-r--r-- | libavfilter/avfiltergraph.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libavfilter/avfiltergraph.h b/libavfilter/avfiltergraph.h index 0d250df614..0d600b91ce 100644 --- a/libavfilter/avfiltergraph.h +++ b/libavfilter/avfiltergraph.h @@ -112,6 +112,19 @@ typedef struct AVFilterInOut { } AVFilterInOut; /** + * Allocate a single AVFilterInOut entry. + * Must be freed with avfilter_inout_free(). + * @return allocated AVFilterInOut on success, NULL on failure. + */ +AVFilterInOut *avfilter_inout_alloc(void); + +/** + * Free the supplied list of AVFilterInOut and set *inout to NULL. + * If *inout is NULL, do nothing. + */ +void avfilter_inout_free(AVFilterInOut **inout); + +/** * Add a graph described by a string to a graph. * * @param graph the filter graph where to link the parsed graph context |