diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-07-25 08:42:25 +0200 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2012-07-26 00:01:04 +0200 |
commit | 08fc1ad151fcaac67f4550c224254352c14e4e10 (patch) | |
tree | 263efbda3bb8f0af768f30a1021fda759f6a78a4 | |
parent | 5423e908c9f5f12f599f6c9625ac9539be671695 (diff) | |
download | ffmpeg-08fc1ad151fcaac67f4550c224254352c14e4e10.tar.gz |
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>
-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 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); |