From cac749a551b2a068ff4636b3d42ccb8cce46c256 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 11 Oct 2012 00:47:15 +0200 Subject: vf_idet: fix free after use Signed-off-by: Michael Niedermayer --- libavfilter/vf_idet.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavfilter/vf_idet.c b/libavfilter/vf_idet.c index 9f68d2f933..7295d5035f 100644 --- a/libavfilter/vf_idet.c +++ b/libavfilter/vf_idet.c @@ -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; -- cgit v1.2.3