[FFmpeg-cvslog] vf_overlay: prevent premature freeing of cur_buf
Michael Niedermayer
git at videolan.org
Sat Jul 21 22:32:10 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Jul 21 22:00:10 2012 +0200| [f7e0c1854950b072dce4aa21053c1a344bf76c72] | committer: Michael Niedermayer
vf_overlay: prevent premature freeing of cur_buf
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f7e0c1854950b072dce4aa21053c1a344bf76c72
---
libavfilter/vf_overlay.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavfilter/vf_overlay.c b/libavfilter/vf_overlay.c
index 0ce344b..6736b06 100644
--- a/libavfilter/vf_overlay.c
+++ b/libavfilter/vf_overlay.c
@@ -560,6 +560,7 @@ static void end_frame_over(AVFilterLink *inlink)
AVFilterContext *ctx = inlink->dst;
OverlayContext *over = ctx->priv;
AVFilterBufferRef *inpicref = inlink->cur_buf;
+ inlink->cur_buf = NULL;
flush_frames(ctx);
inpicref->pts = av_rescale_q(inpicref->pts, ctx->inputs[OVERLAY]->time_base,
More information about the ffmpeg-cvslog
mailing list