]> git.sesse.net Git - ffmpeg/commitdiff
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 9f68d2f933400d4f9000c262e9538fb7da6789b2..7295d5035fa6922eee89a44dd2462d46600a888b 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;