Commit 18908539 authored by Michael Niedermayer's avatar Michael Niedermayer

vf_thumbnail: prevent premature freeing of ref

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 5aab307f
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment