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:
parent
5aab307f30
commit
1890853976
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user