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 c6d78a5..a2b7337 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;