lavfi/asplit: fix memleak

The input samples buffer must be unreferenced after it is propagated to
the output links.
This commit is contained in:
Stefano Sabatini 2012-06-15 16:40:33 +02:00
parent 86206035d1
commit 93bbe53c44

View File

@ -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 = {