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
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue