diff options
author | Anton Khirnov <anton@khirnov.net> | 2012-07-25 10:42:26 +0400 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2012-07-26 02:01:04 +0400 |
commit | f431315a866da9600e3eaa99fc54da1f554f170c (patch) | |
tree | b20c742c84d4ae909e912dc8fb182f887485ac83 /libavfilter/vf_overlay.c | |
parent | 08fc1ad151fcaac67f4550c224254352c14e4e10 (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.c | 1 |
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); |