[FFmpeg-cvslog] vf_overlay: ensure the overlay frame does not get leaked.
Anton Khirnov
git at videolan.org
Thu Jul 26 21:55:15 CEST 2012
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Wed Jul 25 08:42:26 2012 +0200| [f431315a866da9600e3eaa99fc54da1f554f170c] | committer: Luca Barbato
vf_overlay: ensure the overlay frame does not get leaked.
Signed-off-by: Luca Barbato <lu_zero at gentoo.org>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f431315a866da9600e3eaa99fc54da1f554f170c
---
libavfilter/vf_overlay.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavfilter/vf_overlay.c b/libavfilter/vf_overlay.c
index 5f34895..5a8da27 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);
More information about the ffmpeg-cvslog
mailing list