[FFmpeg-cvslog] vf_idet: fix free after use
Michael Niedermayer
git at videolan.org
Mon Apr 8 20:30:36 CEST 2013
ffmpeg | branch: release/1.0 | Michael Niedermayer <michaelni at gmx.at> | Thu Oct 11 00:47:15 2012 +0200| [aef81fa75df2f25655bd762a044cac992e98a40e] | committer: Carl Eugen Hoyos
vf_idet: fix free after use
Fixes ticket #2449
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit cac749a551b2a068ff4636b3d42ccb8cce46c256)
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=aef81fa75df2f25655bd762a044cac992e98a40e
---
libavfilter/vf_idet.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavfilter/vf_idet.c b/libavfilter/vf_idet.c
index 8942ced..56a3c20 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;
More information about the ffmpeg-cvslog
mailing list