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
b6500468
Commit
b6500468
authored
Jan 11, 2020
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/af_dynaudnorm: use better limits for maximal amplification
Fixes regression in smoothness of amplification.
parent
dd39dbf9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
af_dynaudnorm.c
libavfilter/af_dynaudnorm.c
+3
-2
No files found.
libavfilter/af_dynaudnorm.c
View file @
b6500468
...
...
@@ -521,10 +521,11 @@ static void update_gain_history(DynamicAudioNormalizerContext *s, int channel,
}
while
(
cqueue_size
(
s
->
gain_history_minimum
[
channel
])
>=
s
->
filter_size
)
{
double
smoothed
;
double
smoothed
,
limit
;
smoothed
=
gaussian_filter
(
s
,
s
->
gain_history_minimum
[
channel
],
s
->
threshold_history
[
channel
]);
smoothed
=
FFMIN
(
smoothed
,
cqueue_peek
(
s
->
gain_history_minimum
[
channel
],
s
->
filter_size
/
2
));
limit
=
cqueue_peek
(
s
->
gain_history_original
[
channel
],
0
);
smoothed
=
FFMIN
(
smoothed
,
limit
);
cqueue_enqueue
(
s
->
gain_history_smoothed
[
channel
],
smoothed
);
...
...
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