mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-28 05:50:43 +00:00
lavfi/asplit: fix memleak
The input samples buffer must be unreferenced after it is propagated to the output links.
This commit is contained in:
parent
86206035d1
commit
93bbe53c44
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user