Commit f7e0c185 authored by Michael Niedermayer's avatar Michael Niedermayer

vf_overlay: prevent premature freeing of cur_buf

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 0ecaa447
......@@ -560,6 +560,7 @@ static void end_frame_over(AVFilterLink *inlink)
AVFilterContext *ctx = inlink->dst;
OverlayContext *over = ctx->priv;
AVFilterBufferRef *inpicref = inlink->cur_buf;
inlink->cur_buf = NULL;
flush_frames(ctx);
inpicref->pts = av_rescale_q(inpicref->pts, ctx->inputs[OVERLAY]->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