mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
vsrc_movie: fix leak in request_frame()
Also set movie->picref to NULL, in order to avoid a crash in uninit() when movie->picref is unreffed again and it was already freed. Fix trac issue #66. Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it>
This commit is contained in:
parent
7e2eb4bacd
commit
dc8e1b75e7
@ -290,6 +290,8 @@ static int request_frame(AVFilterLink *outlink)
|
|||||||
avfilter_start_frame(outlink, outpicref);
|
avfilter_start_frame(outlink, outpicref);
|
||||||
avfilter_draw_slice(outlink, 0, outlink->h, 1);
|
avfilter_draw_slice(outlink, 0, outlink->h, 1);
|
||||||
avfilter_end_frame(outlink);
|
avfilter_end_frame(outlink);
|
||||||
|
avfilter_unref_buffer(movie->picref);
|
||||||
|
movie->picref = NULL;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user