1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-08-18 07:15:04 +02:00

vf_thumbnail: prevent premature freeing of ref

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2012-07-21 21:38:19 +02:00
parent 5aab307f30
commit 1890853976

View File

@ -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) {