From b70d89a033dacf53758256f875f1b23ce0ae13f1 Mon Sep 17 00:00:00 2001 From: Robert Nagy Date: Mon, 16 Apr 2012 08:17:25 +0200 Subject: lavfi: add avfilter_unref_bufferp() Signed-off-by: Anton Khirnov --- libavfilter/buffer.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libavfilter/buffer.c') diff --git a/libavfilter/buffer.c b/libavfilter/buffer.c index be0da26ea1..e3ebc9b8c7 100644 --- a/libavfilter/buffer.c +++ b/libavfilter/buffer.c @@ -84,6 +84,12 @@ void avfilter_unref_buffer(AVFilterBufferRef *ref) av_free(ref); } +void avfilter_unref_bufferp(AVFilterBufferRef **ref) +{ + avfilter_unref_buffer(*ref); + *ref = NULL; +} + int avfilter_copy_frame_props(AVFilterBufferRef *dst, const AVFrame *src) { dst->pts = src->pts; -- cgit v1.2.3