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
4a672f1c
Commit
4a672f1c
authored
Nov 04, 2022
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/af_dynaudnorm: process also short durations
parent
4dda3b16
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
10 deletions
+4
-10
af_dynaudnorm.c
libavfilter/af_dynaudnorm.c
+4
-10
No files found.
libavfilter/af_dynaudnorm.c
View file @
4a672f1c
...
...
@@ -824,19 +824,13 @@ static int flush(AVFilterLink *outlink)
AVFilterContext
*
ctx
=
outlink
->
src
;
AVFilterLink
*
inlink
=
ctx
->
inputs
[
0
];
DynamicAudioNormalizerContext
*
s
=
ctx
->
priv
;
int
ret
=
0
;
if
(
!
cqueue_empty
(
s
->
gain_history_smoothed
[
0
]))
{
ret
=
flush_buffer
(
s
,
inlink
,
outlink
);
}
else
if
(
s
->
queue
.
available
)
{
AVFrame
*
out
=
ff_bufqueue_get
(
&
s
->
queue
);
s
->
pts
=
out
->
pts
+
av_rescale_q
(
out
->
nb_samples
,
av_make_q
(
1
,
outlink
->
sample_rate
),
outlink
->
time_base
);
ret
=
ff_filter_frame
(
outlink
,
out
);
while
(
s
->
eof
&&
cqueue_empty
(
s
->
gain_history_smoothed
[
0
]))
{
for
(
int
c
=
0
;
c
<
s
->
channels
;
c
++
)
update_gain_history
(
s
,
c
,
(
local_gain
){
cqueue_peek
(
s
->
gain_history_original
[
c
],
0
),
1
.
0
});
}
return
ret
;
return
flush_buffer
(
s
,
inlink
,
outlink
)
;
}
static
int
activate
(
AVFilterContext
*
ctx
)
...
...
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