[FFmpeg-cvslog] vf_slicify: clear AVFilterLink.cur_buf in start_frame().

Anton Khirnov git at videolan.org
Sat Jul 21 22:32:08 CEST 2012


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Wed Jul 11 09:58:43 2012 +0200| [5b50ae94e66547b25fc010d7e4bb1de5788a459c] | committer: Anton Khirnov

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.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5b50ae94e66547b25fc010d7e4bb1de5788a459c
---

 libavfilter/vf_slicify.c |    1 +
 1 file changed, 1 insertion(+)

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 ffmpeg-cvslog mailing list