diff options
author | Robert Nagy <ronag89@gmail.com> | 2012-04-16 08:17:25 +0200 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2012-04-20 01:01:17 +0200 |
commit | 65fa7bc1f8c1bfacc6bdb92cdcc496aaa73d4179 (patch) | |
tree | 3ffe40dad23c7dd51b5f13b30c0aac52242d2b9e /libavfilter/avfilter.h | |
parent | 455fcf29b8482009d2ad13da56cd1122973dc858 (diff) | |
download | ffmpeg-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.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h index 9c7a2e5bbf..fef348d8cc 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 |