From f7e0c1854950b072dce4aa21053c1a344bf76c72 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 21 Jul 2012 22:00:10 +0200 Subject: [PATCH] vf_overlay: prevent premature freeing of cur_buf Signed-off-by: Michael Niedermayer --- libavfilter/vf_overlay.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavfilter/vf_overlay.c b/libavfilter/vf_overlay.c index 0ce344b2c5..6736b06c31 100644 --- a/libavfilter/vf_overlay.c +++ b/libavfilter/vf_overlay.c @@ -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,