mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-24 11:49:48 +00:00
vf_overlay: ensure the overlay frame does not get leaked.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
This commit is contained in:
parent
08fc1ad151
commit
f431315a86
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user