Skip to content
Snippets Groups Projects
Commit f431315a authored by Anton Khirnov's avatar Anton Khirnov Committed by Luca Barbato
Browse files

vf_overlay: ensure the overlay frame does not get leaked.


Signed-off-by: default avatarLuca Barbato <lu_zero@gentoo.org>
parent 08fc1ad1
No related branches found
No related tags found
No related merge requests found
...@@ -239,6 +239,7 @@ static int start_frame_overlay(AVFilterLink *inlink, AVFilterBufferRef *inpicref ...@@ -239,6 +239,7 @@ static int start_frame_overlay(AVFilterLink *inlink, AVFilterBufferRef *inpicref
OverlayContext *over = ctx->priv; OverlayContext *over = ctx->priv;
inlink->cur_buf = NULL; inlink->cur_buf = NULL;
avfilter_unref_bufferp(&over->overpicref);
over->overpicref = inpicref; over->overpicref = inpicref;
over->overpicref->pts = av_rescale_q(inpicref->pts, ctx->inputs[OVERLAY]->time_base, over->overpicref->pts = av_rescale_q(inpicref->pts, ctx->inputs[OVERLAY]->time_base,
ctx->outputs[0]->time_base); ctx->outputs[0]->time_base);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment