Commit 93bbe53c authored by Stefano Sabatini's avatar Stefano Sabatini

lavfi/asplit: fix memleak

The input samples buffer must be unreferenced after it is propagated to
the output links.
parent 86206035
......@@ -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 = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment