Commit 5eb901cf authored by Stefano Sabatini's avatar Stefano Sabatini Committed by Anton Khirnov

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.
Signed-off-by: 's avatarStefano Sabatini <stefano.sabatini-lala@poste.it>
Signed-off-by: 's avatarAnton Khirnov <anton@khirnov.net>
parent 10d39405
...@@ -290,6 +290,8 @@ static int request_frame(AVFilterLink *outlink) ...@@ -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;
} }
......
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