From b5c8aa745ead1b9a561ced99179291bb94048c84 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Wed, 25 Jul 2012 08:42:27 +0200 Subject: vf_yadif: unset cur_buf on the input link. The buffer is stored internally, so this prevents it from being unreffed automatically. Signed-off-by: Luca Barbato --- libavfilter/vf_yadif.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libavfilter/vf_yadif.c') diff --git a/libavfilter/vf_yadif.c b/libavfilter/vf_yadif.c index c6d78a5ae9..a2b7337224 100644 --- a/libavfilter/vf_yadif.c +++ b/libavfilter/vf_yadif.c @@ -221,6 +221,7 @@ static int start_frame(AVFilterLink *link, AVFilterBufferRef *picref) yadif->prev = yadif->cur; yadif->cur = yadif->next; yadif->next = picref; + link->cur_buf = NULL; if (!yadif->cur) return 0; -- cgit v1.2.3