mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +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