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
6fbc7f09
Commit
6fbc7f09
authored
Mar 14, 2020
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/af_anequalizer: fix off by one in reallocation
parent
fa5bff61
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
af_anequalizer.c
libavfilter/af_anequalizer.c
+1
-1
No files found.
libavfilter/af_anequalizer.c
View file @
6fbc7f09
...
@@ -566,7 +566,7 @@ static void equalizer(EqualizatorFilter *f, double sample_rate)
...
@@ -566,7 +566,7 @@ static void equalizer(EqualizatorFilter *f, double sample_rate)
static
int
add_filter
(
AudioNEqualizerContext
*
s
,
AVFilterLink
*
inlink
)
static
int
add_filter
(
AudioNEqualizerContext
*
s
,
AVFilterLink
*
inlink
)
{
{
equalizer
(
&
s
->
filters
[
s
->
nb_filters
],
inlink
->
sample_rate
);
equalizer
(
&
s
->
filters
[
s
->
nb_filters
],
inlink
->
sample_rate
);
if
(
s
->
nb_filters
>=
s
->
nb_allocated
)
{
if
(
s
->
nb_filters
>=
s
->
nb_allocated
-
1
)
{
EqualizatorFilter
*
filters
;
EqualizatorFilter
*
filters
;
filters
=
av_calloc
(
s
->
nb_allocated
,
2
*
sizeof
(
*
s
->
filters
));
filters
=
av_calloc
(
s
->
nb_allocated
,
2
*
sizeof
(
*
s
->
filters
));
...
...
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