From 07bad27810cdd7d3171cbd542119aa051646377c Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sat, 14 Jul 2012 17:09:43 +0200 Subject: lavfi: unref AVFilterLink.cur_buf in ff_end_frame(). This reduces code duplication and prevents stale pointers from remaining on the link. --- libavfilter/vf_overlay.c | 1 - 1 file changed, 1 deletion(-) (limited to 'libavfilter/vf_overlay.c') diff --git a/libavfilter/vf_overlay.c b/libavfilter/vf_overlay.c index b9d64b9495..1230763e4e 100644 --- a/libavfilter/vf_overlay.c +++ b/libavfilter/vf_overlay.c @@ -339,7 +339,6 @@ static void draw_slice(AVFilterLink *inlink, int y, int h, int slice_dir) static void end_frame(AVFilterLink *inlink) { ff_end_frame(inlink->dst->outputs[0]); - avfilter_unref_buffer(inlink->cur_buf); } static void null_draw_slice(AVFilterLink *inlink, int y, int h, int slice_dir) { } -- cgit v1.2.3