summaryrefslogtreecommitdiff
path: root/libavfilter
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2012-07-11 09:58:43 +0200
committerAnton Khirnov <anton@khirnov.net>2012-07-20 21:09:48 +0200
commit5b50ae94e66547b25fc010d7e4bb1de5788a459c (patch)
tree84cbd9d34959e3e94b82d28e8c2aff351e5ed8bf /libavfilter
parent0393af4f0b9a536fb2a005c94aeb3a476db2645b (diff)
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.
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/vf_slicify.c1
1 files changed, 1 insertions, 0 deletions
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);
}