From aef81fa75df2f25655bd762a044cac992e98a40e Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 11 Oct 2012 00:47:15 +0200 Subject: [PATCH] vf_idet: fix free after use Fixes ticket #2449 Signed-off-by: Michael Niedermayer (cherry picked from commit cac749a551b2a068ff4636b3d42ccb8cce46c256) --- libavfilter/vf_idet.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavfilter/vf_idet.c b/libavfilter/vf_idet.c index 8942ced4f3..56a3c20a54 100644 --- a/libavfilter/vf_idet.c +++ b/libavfilter/vf_idet.c @@ -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;