]> git.sesse.net Git - ffmpeg/commitdiff
vf_yadif: unset cur_buf on the input link.
authorAnton Khirnov <anton@khirnov.net>
Wed, 25 Jul 2012 06:42:27 +0000 (08:42 +0200)
committerLuca Barbato <lu_zero@gentoo.org>
Wed, 25 Jul 2012 22:01:04 +0000 (00:01 +0200)
The buffer is stored internally, so this prevents it from being unreffed
automatically.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavfilter/vf_yadif.c

index c6d78a5ae9a4663a7c21f7a41b846f128d3b107b..a2b7337224a0d5f69d400f4cfbd3184475d20f38 100644 (file)
@@ -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;