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.c | |
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.c')
-rw-r--r-- | libavfilter/avfilter.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c index 141fb9d7ca..28c2599d0e 100644 --- a/libavfilter/avfilter.c +++ b/libavfilter/avfilter.c @@ -160,6 +160,12 @@ void avfilter_unref_buffer(AVFilterBufferRef *ref) av_free(ref); } +void avfilter_unref_bufferp(AVFilterBufferRef **ref) +{ + avfilter_unref_buffer(*ref); + *ref = NULL; +} + void avfilter_insert_pad(unsigned idx, unsigned *count, size_t padidx_off, AVFilterPad **pads, AVFilterLink ***links, AVFilterPad *newpad) |