summaryrefslogtreecommitdiffstats
path: root/libavfilter/avfilter.h
diff options
context:
space:
mode:
authorRobert Nagy <ronag89@gmail.com>2012-04-16 08:17:25 +0200
committerStefano Sabatini <stefasab@gmail.com>2012-04-20 01:01:17 +0200
commit65fa7bc1f8c1bfacc6bdb92cdcc496aaa73d4179 (patch)
tree3ffe40dad23c7dd51b5f13b30c0aac52242d2b9e /libavfilter/avfilter.h
parent455fcf29b8482009d2ad13da56cd1122973dc858 (diff)
downloadffmpeg-streaming-65fa7bc1f8c1bfacc6bdb92cdcc496aaa73d4179.zip
ffmpeg-streaming-65fa7bc1f8c1bfacc6bdb92cdcc496aaa73d4179.tar.gz
lavfi: add avfilter_unref_bufferp()
Signed-off-by: Stefano Sabatini <stefasab@gmail.com>
Diffstat (limited to 'libavfilter/avfilter.h')
-rw-r--r--libavfilter/avfilter.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h
index 9c7a2e5..fef348d 100644
--- a/libavfilter/avfilter.h
+++ b/libavfilter/avfilter.h
@@ -188,6 +188,15 @@ AVFilterBufferRef *avfilter_ref_buffer(AVFilterBufferRef *ref, int pmask);
void avfilter_unref_buffer(AVFilterBufferRef *ref);
/**
+ * Remove a reference to a buffer and set the pointer to NULL.
+ * If this is the last reference to the buffer, the buffer itself
+ * is also automatically freed.
+ *
+ * @param ref pointer to the buffer reference
+ */
+void avfilter_unref_bufferp(AVFilterBufferRef **ref);
+
+/**
* A list of supported formats for one end of a filter link. This is used
* during the format negotiation process to try to pick the best format to
* use to minimize the number of necessary conversions. Each filter gives a
OpenPOWER on IntegriCloud