[FFmpeg-cvslog] vf_overlay: prevent premature freeing of cur_buf
Michael Niedermayer
git at videolan.org
Thu Jul 26 21:55:14 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Jul 25 08:42:25 2012 +0200| [08fc1ad151fcaac67f4550c224254352c14e4e10] | committer: Luca Barbato
vf_overlay: prevent premature freeing of cur_buf
Signed-off-by: Anton Khirnov <anton at khirnov.net>
Signed-off-by: Luca Barbato <lu_zero at gentoo.org>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=08fc1ad151fcaac67f4550c224254352c14e4e10
---
libavfilter/vf_overlay.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavfilter/vf_overlay.c b/libavfilter/vf_overlay.c
index 14304c1..5f34895 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);
More information about the ffmpeg-cvslog
mailing list