From 5b50ae94e66547b25fc010d7e4bb1de5788a459c Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Wed, 11 Jul 2012 09:58:43 +0200 Subject: [PATCH] vf_slicify: clear AVFilterLink.cur_buf in start_frame(). The buffer is passed on to the next filter, so we shouldn't keep any pointers to it. --- libavfilter/vf_slicify.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavfilter/vf_slicify.c b/libavfilter/vf_slicify.c index e256c4561b..e35407586e 100644 --- a/libavfilter/vf_slicify.c +++ b/libavfilter/vf_slicify.c @@ -73,6 +73,7 @@ static void start_frame(AVFilterLink *link, AVFilterBufferRef *picref) slice->h = FFMAX(8, slice->h & (-1 << slice->vshift)); av_log(link->dst, AV_LOG_DEBUG, "h:%d\n", slice->h); + link->cur_buf = NULL; ff_start_frame(link->dst->outputs[0], picref); }