mirror of
https://github.com/samsonjs/media.git
synced 2026-03-25 09:25:53 +00:00
Add explicit cast to ByteBuffer for Java 8 compatibility
PiperOrigin-RevId: 451994696
This commit is contained in:
parent
3ba9d7e125
commit
5cdac6575e
1 changed files with 5 additions and 1 deletions
|
|
@ -200,8 +200,12 @@ public final class OpusDecoderTest {
|
|||
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) {
|
||||
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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue