diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-07-21 22:00:10 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-07-21 22:17:57 +0200 |
commit | f7e0c1854950b072dce4aa21053c1a344bf76c72 (patch) | |
tree | 600357990845dba135935f9dffcd6755a460b2a9 | |
parent | 0ecaa447f6ca10f5aec940b1b39013ff00c239db (diff) | |
download | ffmpeg-f7e0c1854950b072dce4aa21053c1a344bf76c72.tar.gz |
vf_overlay: prevent premature freeing of cur_buf
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-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 0ce344b2c5..6736b06c31 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, |