diff options
author | Anton Khirnov <anton@khirnov.net> | 2012-07-25 08:42:26 +0200 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2012-07-26 00:01:04 +0200 |
commit | f431315a866da9600e3eaa99fc54da1f554f170c (patch) | |
tree | b20c742c84d4ae909e912dc8fb182f887485ac83 /libavfilter | |
parent | 08fc1ad151fcaac67f4550c224254352c14e4e10 (diff) | |
download | ffmpeg-f431315a866da9600e3eaa99fc54da1f554f170c.tar.gz |
vf_overlay: ensure the overlay frame does not get leaked.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavfilter')
-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); |