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
1b262004
Commit
1b262004
authored
Jul 02, 2019
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/af_silenceremove: use input timestamp for timestamp recalculation
parent
231d0c81
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
af_silenceremove.c
libavfilter/af_silenceremove.c
+4
-0
No files found.
libavfilter/af_silenceremove.c
View file @
1b262004
...
...
@@ -206,6 +206,7 @@ static int config_input(AVFilterLink *inlink)
AVFilterContext
*
ctx
=
inlink
->
dst
;
SilenceRemoveContext
*
s
=
ctx
->
priv
;
s
->
next_pts
=
AV_NOPTS_VALUE
;
s
->
window_size
=
FFMAX
((
inlink
->
sample_rate
*
s
->
window_ratio
),
1
)
*
inlink
->
channels
;
s
->
window
=
av_malloc_array
(
s
->
window_size
,
sizeof
(
*
s
->
window
));
if
(
!
s
->
window
)
...
...
@@ -328,6 +329,9 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
nb_samples_read
=
nb_samples_written
=
0
;
if
(
s
->
next_pts
==
AV_NOPTS_VALUE
)
s
->
next_pts
=
in
->
pts
;
switch
(
s
->
mode
)
{
case
SILENCE_TRIM
:
silence_trim:
...
...
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