vf_overlay: prevent premature freeing of cur_buf

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/28/head
Michael Niedermayer 13 years ago
parent 0ecaa447f6
commit f7e0c18549
  1. 1
      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,

Loading…
Cancel
Save