vf_idet: fix free after use
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 10 Oct 2012 22:47:15 +0000 (00:47 +0200)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Mon, 8 Apr 2013 18:29:12 +0000 (20:29 +0200)
Fixes ticket #2449

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit cac749a551b2a068ff4636b3d42ccb8cce46c256)

libavfilter/vf_idet.c

index 8942ced..56a3c20 100644 (file)
@@ -176,6 +176,7 @@ static int start_frame(AVFilterLink *link, AVFilterBufferRef *picref)
     idet->prev = idet->cur;
     idet->cur  = idet->next;
     idet->next = picref;
+    link->cur_buf = NULL;
 
     if (!idet->cur)
         return 0;