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

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


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

vf_aspect: 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=51a8049be8be096b50a1613d65433f9c7949e1a2
---

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

diff --git a/libavfilter/vf_aspect.c b/libavfilter/vf_aspect.c
index 4b58e5e..1bedd51 100644
--- a/libavfilter/vf_aspect.c
+++ b/libavfilter/vf_aspect.c
@@ -69,6 +69,7 @@ static void start_frame(AVFilterLink *link, AVFilterBufferRef *picref)
     AspectContext *aspect = link->dst->priv;
 
     picref->video->pixel_aspect = aspect->aspect;
+    link->cur_buf = NULL;
     ff_start_frame(link->dst->outputs[0], picref);
 }
 



More information about the ffmpeg-cvslog mailing list