History

lavfi: take_samples: free frames after taking all samples.

Nicolas George committed 9 years ago

Commit ff8b17c1 parent 31426911 file · +1 −0Browse files

Showing the changes to libavfilter/avfilter.c (1 of 1 file). Show all

Unified · Split

libavfilter/avfilter.c+1−0
@@ -1288,6 +1288,7 @@ static int take_samples(AVFilterLink *link, unsigned min, unsigned max, · 1287 unmodified lines
12881288 av_samples_copy(buf->extended_data, frame->extended_data, p, 0,
12891289 frame->nb_samples, link->channels, link->format);
12901290 p += frame->nb_samples;
1291+ av_frame_free(&frame);
12911292 }
12921293 if (p < nb_samples) {
12931294 unsigned n = nb_samples - p;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t