[libav-commits] vf_yadif: unset cur_buf on the input link.

Anton Khirnov git at libav.org
Thu Jul 26 10:03:33 CEST 2012


Module: libav
Branch: master
Commit: b5c8aa745ead1b9a561ced99179291bb94048c84

Author:    Anton Khirnov <anton at khirnov.net>
Committer: Luca Barbato <lu_zero at gentoo.org>
Date:      Wed Jul 25 08:42:27 2012 +0200

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 at gentoo.org>

---

 libavfilter/vf_yadif.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libavfilter/vf_yadif.c b/libavfilter/vf_yadif.c
index c6d78a5..a2b7337 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;



More information about the libav-commits mailing list