[FFmpeg-cvslog] vf_thumbnail: prevent premature freeing of ref

Michael Niedermayer git at videolan.org
Sat Jul 21 22:32:09 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Jul 21 21:38:19 2012 +0200| [1890853976a8076ca12de7d6662d6fba255597f3] | committer: Michael Niedermayer

vf_thumbnail: prevent premature freeing of ref

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

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

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

diff --git a/libavfilter/vf_thumbnail.c b/libavfilter/vf_thumbnail.c
index dda1a5d..4359635 100644
--- a/libavfilter/vf_thumbnail.c
+++ b/libavfilter/vf_thumbnail.c
@@ -117,6 +117,7 @@ static void end_frame(AVFilterLink *inlink)
 
     // keep a reference of each frame
     thumb->frames[thumb->n].buf = inlink->cur_buf;
+    inlink->cur_buf = NULL;
 
     // no selection until the buffer of N frames is filled up
     if (thumb->n < thumb->n_frames - 1) {



More information about the ffmpeg-cvslog mailing list