aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2012-07-03 11:26:45 +0200
committerAnton Khirnov <anton@khirnov.net>2012-07-09 08:22:11 +0200
commit083d0f6be8a22ce936c4be6f17977104e516434f (patch)
treefabc9e72d4e9ca5cfbac62fc949813dd2a67cbe2
parent1ffb6456629314e992e2b55dd0649f0fb975b6fa (diff)
downloadffmpeg-083d0f6be8a22ce936c4be6f17977104e516434f.tar.gz
asplit: don't leak the input buffer.
-rw-r--r--libavfilter/split.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavfilter/split.c b/libavfilter/split.c
index f1c4b9287d..ae810e52c6 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 = {