Commit f431315a authored by Anton Khirnov's avatar Anton Khirnov Committed by Luca Barbato

vf_overlay: ensure the overlay frame does not get leaked.

Signed-off-by: 's avatarLuca Barbato <lu_zero@gentoo.org>
parent 08fc1ad1
......@@ -239,6 +239,7 @@ static int start_frame_overlay(AVFilterLink *inlink, AVFilterBufferRef *inpicref
OverlayContext *over = ctx->priv;
inlink->cur_buf = NULL;
avfilter_unref_bufferp(&over->overpicref);
over->overpicref = inpicref;
over->overpicref->pts = av_rescale_q(inpicref->pts, ctx->inputs[OVERLAY]->time_base,
ctx->outputs[0]->time_base);
......
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