[libav-commits] vf_slicify: clear AVFilterLink.cur_buf in start_frame().

Anton Khirnov git at libav.org
Fri Jul 20 21:17:33 CEST 2012


Module: libav
Branch: master
Commit: 5b50ae94e66547b25fc010d7e4bb1de5788a459c

Author:    Anton Khirnov <anton at khirnov.net>
Committer: Anton Khirnov <anton at khirnov.net>
Date:      Wed Jul 11 09:58:43 2012 +0200

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 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libavfilter/vf_slicify.c b/libavfilter/vf_slicify.c
index e256c45..e354075 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);
 }



More information about the libav-commits mailing list