Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
5aac1898
authored
Dec 14, 2020
by
olly
Committed by
Christos Tsilopoulos
Dec 17, 2020
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Use longs to avoid intger overflow
PiperOrigin-RevId: 347351440
parent
4907cf87
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
library/core/src/test/java/com/google/android/exoplayer2/DefaultLivePlaybackSpeedControlTest.java
library/core/src/test/java/com/google/android/exoplayer2/DefaultLivePlaybackSpeedControlTest.java
View file @
5aac1898
...
...
@@ -388,7 +388,7 @@ public class DefaultLivePlaybackSpeedControlTest {
for
(
int
i
=
0
;
i
<
500
;
i
++)
{
ShadowSystemClock
.
advanceBy
(
Duration
.
ofMillis
(
100
));
long
noiseUs
=
((
i
%
10
)
-
5
)
*
1_000
;
long
noiseUs
=
((
i
%
10
)
-
5
L
)
*
1_000
;
defaultLivePlaybackSpeedControl
.
getAdjustedPlaybackSpeed
(
/* liveOffsetUs= */
45_000_000
,
/* bufferedDurationUs= */
1_000_000
+
noiseUs
);
}
...
...
@@ -419,7 +419,7 @@ public class DefaultLivePlaybackSpeedControlTest {
// Pretend to have a buffered duration at around the target duration with some artificial noise.
for
(
int
i
=
0
;
i
<
500
;
i
++)
{
ShadowSystemClock
.
advanceBy
(
Duration
.
ofMillis
(
100
));
long
noiseUs
=
((
i
%
10
)
-
5
)
*
1_000
;
long
noiseUs
=
((
i
%
10
)
-
5
L
)
*
1_000
;
defaultLivePlaybackSpeedControl
.
getAdjustedPlaybackSpeed
(
/* liveOffsetUs= */
49_000_000
,
/* bufferedDurationUs= */
7_000_000
+
noiseUs
);
}
...
...
@@ -451,7 +451,7 @@ public class DefaultLivePlaybackSpeedControlTest {
// Pretend to have a buffered duration at around the target duration with some artificial noise.
for
(
int
i
=
0
;
i
<
500
;
i
++)
{
ShadowSystemClock
.
advanceBy
(
Duration
.
ofMillis
(
100
));
long
noiseUs
=
((
i
%
10
)
-
5
)
*
1_000
;
long
noiseUs
=
((
i
%
10
)
-
5
L
)
*
1_000
;
defaultLivePlaybackSpeedControl
.
getAdjustedPlaybackSpeed
(
/* liveOffsetUs= */
49_000_000
,
/* bufferedDurationUs= */
7_000_000
+
noiseUs
);
}
...
...
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