aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_thumbnail.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-07-21 21:38:19 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-07-21 22:17:31 +0200
commit1890853976a8076ca12de7d6662d6fba255597f3 (patch)
tree001e2f4babaa393126daa1f8725809f53dd5ae75 /libavfilter/vf_thumbnail.c
parent5aab307f301c032b164f02b0b3b4bb2608d79a00 (diff)
downloadffmpeg-1890853976a8076ca12de7d6662d6fba255597f3.tar.gz
vf_thumbnail: prevent premature freeing of ref
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/vf_thumbnail.c')
-rw-r--r--libavfilter/vf_thumbnail.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavfilter/vf_thumbnail.c b/libavfilter/vf_thumbnail.c
index dda1a5dbf6..4359635c1f 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) {