The buffer is stored internally, so this prevents it from being unreffed
automatically.
---
 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;
-- 
1.7.10.4

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to