Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Nagy <ronag89@gmail.com>2012-04-16 10:17:25 +0400
committerAnton Khirnov <anton@khirnov.net>2012-07-20 23:06:18 +0400
commitb70d89a033dacf53758256f875f1b23ce0ae13f1 (patch)
tree430b0d376ca386efaa49062d3d8ed2de5df44d9c /libavfilter/buffer.c
parentce64e5bfd11ae63af0fb10317a2aea6f7501be62 (diff)
lavfi: add avfilter_unref_bufferp()
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavfilter/buffer.c')
-rw-r--r--libavfilter/buffer.c6
1 files changed, 6 insertions, 0 deletions
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;