summaryrefslogtreecommitdiff
path: root/libavfilter/vf_idet.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-10-11 00:47:15 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-10-11 02:21:28 +0200
commitcac749a551b2a068ff4636b3d42ccb8cce46c256 (patch)
treeeae8cc3a893901dfb15b4fd12f4cf23f7ad2831d /libavfilter/vf_idet.c
parent1a104bf641b1f5e278dd1cbf29853921785aa797 (diff)
vf_idet: fix free after use
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/vf_idet.c')
-rw-r--r--libavfilter/vf_idet.c1
1 files changed, 1 insertions, 0 deletions
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;