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_unsharp.c | 1 - 1 file changed, 1 deletion(-) (limited to 'libavfilter/vf_unsharp.c') diff --git a/libavfilter/vf_unsharp.c b/libavfilter/vf_unsharp.c index ddfbf2cd3c..3d28759ddf 100644 --- a/libavfilter/vf_unsharp.c +++ b/libavfilter/vf_unsharp.c @@ -225,7 +225,6 @@ static void end_frame(AVFilterLink *link) apply_unsharp(out->data[1], out->linesize[1], in->data[1], in->linesize[1], cw, ch, &unsharp->chroma); apply_unsharp(out->data[2], out->linesize[2], in->data[2], in->linesize[2], cw, ch, &unsharp->chroma); - avfilter_unref_buffer(in); ff_draw_slice(link->dst->outputs[0], 0, link->h, 1); ff_end_frame(link->dst->outputs[0]); avfilter_unref_buffer(out); -- cgit v1.2.3