[FFmpeg-cvslog] asplit: don't leak the input buffer.

Anton Khirnov git at videolan.org
Mon Jul 9 22:43:09 CEST 2012


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Tue Jul  3 11:26:45 2012 +0200| [083d0f6be8a22ce936c4be6f17977104e516434f] | committer: Anton Khirnov

asplit: don't leak the input buffer.

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

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

diff --git a/libavfilter/split.c b/libavfilter/split.c
index f1c4b92..ae810e5 100644
--- a/libavfilter/split.c
+++ b/libavfilter/split.c
@@ -118,6 +118,7 @@ static void filter_samples(AVFilterLink *inlink, AVFilterBufferRef *samplesref)
     for (i = 0; i < ctx->nb_outputs; i++)
         ff_filter_samples(inlink->dst->outputs[i],
                           avfilter_ref_buffer(samplesref, ~AV_PERM_WRITE));
+    avfilter_unref_buffer(samplesref);
 }
 
 AVFilter avfilter_af_asplit = {



More information about the ffmpeg-cvslog mailing list