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
e95987f6
Commit
e95987f6
authored
Oct 28, 2018
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/af_afftdn: fix memory leaks reported by coverity
parent
7070955d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
af_afftdn.c
libavfilter/af_afftdn.c
+7
-7
No files found.
libavfilter/af_afftdn.c
View file @
e95987f6
...
...
@@ -1163,15 +1163,13 @@ static int output_frame(AVFilterLink *inlink)
ThreadData
td
;
int
ret
=
0
;
if
(
!
in
)
{
in
=
ff_get_audio_buffer
(
outlink
,
s
->
window_length
);
if
(
!
in
)
return
AVERROR
(
ENOMEM
);
}
in
=
ff_get_audio_buffer
(
outlink
,
s
->
window_length
);
if
(
!
in
)
return
AVERROR
(
ENOMEM
);
ret
=
av_audio_fifo_peek
(
s
->
fifo
,
(
void
**
)
in
->
extended_data
,
s
->
window_length
);
if
(
ret
<
0
)
return
ret
;
goto
end
;
if
(
s
->
track_noise
)
{
for
(
int
ch
=
0
;
ch
<
inlink
->
channels
;
ch
++
)
{
...
...
@@ -1248,7 +1246,9 @@ static int output_frame(AVFilterLink *inlink)
dst
[
m
]
=
orig
[
m
]
-
src
[
m
];
break
;
default:
return
AVERROR_BUG
;
av_frame_free
(
&
out
);
ret
=
AVERROR_BUG
;
goto
end
;
}
memmove
(
src
,
src
+
s
->
sample_advance
,
(
s
->
window_length
-
s
->
sample_advance
)
*
sizeof
(
*
src
));
memset
(
src
+
(
s
->
window_length
-
s
->
sample_advance
),
0
,
s
->
sample_advance
*
sizeof
(
*
src
));
...
...
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