aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2012-07-25 08:42:27 +0200
committerLuca Barbato <lu_zero@gentoo.org>2012-07-26 00:01:04 +0200
commitb5c8aa745ead1b9a561ced99179291bb94048c84 (patch)
tree8f129c536a1fbc9e38516e78f2f78cd7d253cebd
parentf431315a866da9600e3eaa99fc54da1f554f170c (diff)
downloadffmpeg-b5c8aa745ead1b9a561ced99179291bb94048c84.tar.gz
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 <lu_zero@gentoo.org>
-rw-r--r--libavfilter/vf_yadif.c1
1 files changed, 1 insertions, 0 deletions
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;