[FFmpeg-cvslog] vf_idet: fix free after use

Michael Niedermayer git at videolan.org
Thu Oct 11 02:23:22 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Oct 11 00:47:15 2012 +0200| [cac749a551b2a068ff4636b3d42ccb8cce46c256] | committer: Michael Niedermayer

vf_idet: fix free after use

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cac749a551b2a068ff4636b3d42ccb8cce46c256
---

 libavfilter/vf_idet.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavfilter/vf_idet.c b/libavfilter/vf_idet.c
index 9f68d2f..7295d50 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;



More information about the ffmpeg-cvslog mailing list