[libav-commits] vf_overlay: ensure the overlay frame does not get leaked.

Anton Khirnov git at libav.org
Thu Jul 26 10:03:33 CEST 2012


Module: libav
Branch: master
Commit: f431315a866da9600e3eaa99fc54da1f554f170c

Author:    Anton Khirnov <anton at khirnov.net>
Committer: Luca Barbato <lu_zero at gentoo.org>
Date:      Wed Jul 25 08:42:26 2012 +0200

vf_overlay: ensure the overlay frame does not get leaked.

Signed-off-by: Luca Barbato <lu_zero at gentoo.org>

---

 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 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 libav-commits mailing list