Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
ff8b17c9
Commit
ff8b17c9
authored
Dec 22, 2016
by
Nicolas George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi: take_samples: free frames after taking all samples.
parent
31426911
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
avfilter.c
libavfilter/avfilter.c
+1
-0
No files found.
libavfilter/avfilter.c
View file @
ff8b17c9
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment