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
1c5032e1
authored
May 31, 2022
by
bachinger
Committed by
Marc Baechinger
May 31, 2022
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Add explicit cast to ByteBuffer for Java 8 compatibility
PiperOrigin-RevId: 451994696
parent
7fc9bb9c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
extensions/opus/src/test/java/com/google/android/exoplayer2/ext/opus/OpusDecoderTest.java
extensions/opus/src/test/java/com/google/android/exoplayer2/ext/opus/OpusDecoderTest.java
View file @
1c5032e1
...
@@ -200,8 +200,12 @@ public final class OpusDecoderTest {
...
@@ -200,8 +200,12 @@ public final class OpusDecoderTest {
return
ImmutableList
.
of
(
HEADER
,
preSkip
,
CUSTOM_SEEK_PRE_ROLL_BYTES
);
return
ImmutableList
.
of
(
HEADER
,
preSkip
,
CUSTOM_SEEK_PRE_ROLL_BYTES
);
}
}
// The cast to ByteBuffer is required for Java 8 compatibility. See
// https://issues.apache.org/jira/browse/MRESOLVER-85
@SuppressWarnings
(
"UnnecessaryCast"
)
private
static
ByteBuffer
createSupplementalData
(
long
value
)
{
private
static
ByteBuffer
createSupplementalData
(
long
value
)
{
return
ByteBuffer
.
allocate
(
8
).
order
(
ByteOrder
.
LITTLE_ENDIAN
).
putLong
(
value
).
rewind
();
return
(
ByteBuffer
)
ByteBuffer
.
allocate
(
8
).
order
(
ByteOrder
.
LITTLE_ENDIAN
).
putLong
(
value
).
rewind
();
}
}
private
static
DecoderInputBuffer
createInputBuffer
(
private
static
DecoderInputBuffer
createInputBuffer
(
...
...
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