summaryrefslogtreecommitdiff
path: root/libavfilter/vf_overlay.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-07-25 08:42:25 +0200
committerLuca Barbato <lu_zero@gentoo.org>2012-07-26 00:01:04 +0200
commit08fc1ad151fcaac67f4550c224254352c14e4e10 (patch)
tree263efbda3bb8f0af768f30a1021fda759f6a78a4 /libavfilter/vf_overlay.c
parent5423e908c9f5f12f599f6c9625ac9539be671695 (diff)
vf_overlay: prevent premature freeing of cur_buf
Signed-off-by: Anton Khirnov <anton@khirnov.net> 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 14304c1918..5f34895058 100644
--- a/libavfilter/vf_overlay.c
+++ b/libavfilter/vf_overlay.c
@@ -238,6 +238,7 @@ static int start_frame_overlay(AVFilterLink *inlink, AVFilterBufferRef *inpicref
AVFilterContext *ctx = inlink->dst;
OverlayContext *over = ctx->priv;
+ inlink->cur_buf = NULL;
over->overpicref = inpicref;
over->overpicref->pts = av_rescale_q(inpicref->pts, ctx->inputs[OVERLAY]->time_base,
ctx->outputs[0]->time_base);