summaryrefslogtreecommitdiff
path: root/libavfilter/vf_overlay.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2012-07-25 08:42:26 +0200
committerLuca Barbato <lu_zero@gentoo.org>2012-07-26 00:01:04 +0200
commitf431315a866da9600e3eaa99fc54da1f554f170c (patch)
treeb20c742c84d4ae909e912dc8fb182f887485ac83 /libavfilter/vf_overlay.c
parent08fc1ad151fcaac67f4550c224254352c14e4e10 (diff)
vf_overlay: ensure the overlay frame does not get leaked.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavfilter/vf_overlay.c')
-rw-r--r--libavfilter/vf_overlay.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavfilter/vf_overlay.c b/libavfilter/vf_overlay.c
index 5f34895058..5a8da27a16 100644
--- a/libavfilter/vf_overlay.c
+++ b/libavfilter/vf_overlay.c
@@ -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);