[FFmpeg-cvslog] vf_yadif: unset cur_buf on the input link.

Anton Khirnov git at videolan.org
Thu Jul 26 21:55:15 CEST 2012


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Wed Jul 25 08:42:27 2012 +0200| [b5c8aa745ead1b9a561ced99179291bb94048c84] | committer: Luca Barbato

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>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b5c8aa745ead1b9a561ced99179291bb94048c84
---

 libavfilter/vf_yadif.c |    1 +
 1 file changed, 1 insertion(+)

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 ffmpeg-cvslog mailing list