vf_idet: fix free after use
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 10 Oct 2012 22:47:15 +0000 (00:47 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 11 Oct 2012 00:21:28 +0000 (02:21 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/vf_idet.c

index 9f68d2f..7295d50 100644 (file)
@@ -175,6 +175,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;