Browse Source

vf_overlay: ensure the overlay frame does not get leaked.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
tags/n1.0
Anton Khirnov Luca Barbato 13 years ago
parent
commit
f431315a86
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavfilter/vf_overlay.c

+ 1
- 0
libavfilter/vf_overlay.c View File

@@ -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…
Cancel
Save