Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
d295b6b6
Commit
d295b6b6
authored
Aug 07, 2023
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter: fix highshelf zdf coefficients
parent
e35dfe86
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
adynamicequalizer_template.c
libavfilter/adynamicequalizer_template.c
+1
-1
af_biquads.c
libavfilter/af_biquads.c
+1
-1
No files found.
libavfilter/adynamicequalizer_template.c
View file @
d295b6b6
...
...
@@ -238,7 +238,7 @@ static int fn(filter_channels)(AVFilterContext *ctx, void *arg, int jobnr, int n
break
;
case
2
:
k
=
itqfactor
;
g
=
fg
/
SQRT
(
gain
);
g
=
fg
*
SQRT
(
gain
);
fa
[
0
]
=
ONE
/
(
ONE
+
g
*
(
g
+
k
));
fa
[
1
]
=
g
*
fa
[
0
];
...
...
libavfilter/af_biquads.c
View file @
d295b6b6
...
...
@@ -722,7 +722,7 @@ static void convert_dir2zdf(BiquadsContext *s, int sample_rate)
case
treble
:
case
highshelf
:
A
=
ff_exp10
(
s
->
gain
/
40
.);
g
=
tan
(
M_PI
*
s
->
frequency
/
sample_rate
)
/
sqrt
(
A
);
g
=
tan
(
M_PI
*
s
->
frequency
/
sample_rate
)
*
sqrt
(
A
);
k
=
1
.
/
Q
;
a
[
0
]
=
1
.
/
(
1
.
+
g
*
(
g
+
k
));
a
[
1
]
=
g
*
a
[
0
];
...
...
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