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
d1384c00
Commit
d1384c00
authored
May 19, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swr: skip soft compensation when its disabled.
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
c5371f77
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
swresample.c
libswresample/swresample.c
+1
-1
No files found.
libswresample/swresample.c
View file @
d1384c00
...
...
@@ -761,7 +761,7 @@ int64_t swr_next_pts(struct SwrContext *s, int64_t pts){
if
(
!
s
->
outpts
||
fabs
(
fdelta
)
>
s
->
min_hard_compensation
){
if
(
delta
>
0
)
swr_inject_silence
(
s
,
delta
/
s
->
out_sample_rate
);
else
swr_drop_output
(
s
,
-
delta
/
s
->
in_sample_rate
);
}
else
{
}
else
if
(
s
->
soft_compensation_duration
&&
s
->
max_soft_compensation
)
{
int
duration
=
s
->
out_sample_rate
*
s
->
soft_compensation_duration
;
int
comp
=
av_clipf
(
fdelta
,
-
s
->
max_soft_compensation
,
s
->
max_soft_compensation
)
*
duration
;
av_log
(
s
,
AV_LOG_VERBOSE
,
"compensating audio timestamp drift:%f compensation:%d in:%d
\n
"
,
fdelta
,
comp
,
duration
);
...
...
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