mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-03-22 10:58:04 +00:00
lavfi: take_samples: free frames after taking all samples.
This commit is contained in:
parent
3142691181
commit
ff8b17c998
@ -1288,6 +1288,7 @@ static int take_samples(AVFilterLink *link, unsigned min, unsigned max,
|
||||
av_samples_copy(buf->extended_data, frame->extended_data, p, 0,
|
||||
frame->nb_samples, link->channels, link->format);
|
||||
p += frame->nb_samples;
|
||||
av_frame_free(&frame);
|
||||
}
|
||||
if (p < nb_samples) {
|
||||
unsigned n = nb_samples - p;
|
||||
|
Loading…
Reference in New Issue
Block a user