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
d35c029c
Commit
d35c029c
authored
Jan 02, 2016
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/avf_showspectrum: fix null pointer dereference if allocation fails
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
9b06e7be
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
avf_showspectrum.c
libavfilter/avf_showspectrum.c
+8
-4
No files found.
libavfilter/avf_showspectrum.c
View file @
d35c029c
...
...
@@ -194,12 +194,16 @@ static av_cold void uninit(AVFilterContext *ctx)
av_freep
(
&
s
->
combine_buffer
);
av_rdft_end
(
s
->
rdft
);
for
(
i
=
0
;
i
<
s
->
nb_display_channels
;
i
++
)
av_freep
(
&
s
->
rdft_data
[
i
]);
if
(
s
->
rdft_data
)
{
for
(
i
=
0
;
i
<
s
->
nb_display_channels
;
i
++
)
av_freep
(
&
s
->
rdft_data
[
i
]);
}
av_freep
(
&
s
->
rdft_data
);
av_freep
(
&
s
->
window_func_lut
);
for
(
i
=
0
;
i
<
s
->
nb_display_channels
;
i
++
)
av_freep
(
&
s
->
magnitudes
[
i
]);
if
(
s
->
magnitudes
)
{
for
(
i
=
0
;
i
<
s
->
nb_display_channels
;
i
++
)
av_freep
(
&
s
->
magnitudes
[
i
]);
}
av_freep
(
&
s
->
magnitudes
);
av_frame_free
(
&
s
->
outpicref
);
av_audio_fifo_free
(
s
->
fifo
);
...
...
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