mirror of
https://github.com/samsonjs/media.git
synced 2026-04-04 11:05:47 +00:00
Use Long.SIZE.
This commit is contained in:
parent
3ca12d0c39
commit
286365ada8
1 changed files with 2 additions and 2 deletions
|
|
@ -489,8 +489,8 @@ public final class WebmExtractor implements Extractor {
|
|||
} else if (CODEC_ID_OPUS.equals(codecId)) {
|
||||
ArrayList<byte[]> opusInitializationData = new ArrayList<byte[]>(3);
|
||||
opusInitializationData.add(codecPrivate);
|
||||
opusInitializationData.add(ByteBuffer.allocate(8).putLong(codecDelayNs).array());
|
||||
opusInitializationData.add(ByteBuffer.allocate(8).putLong(seekPreRollNs).array());
|
||||
opusInitializationData.add(ByteBuffer.allocate(Long.SIZE).putLong(codecDelayNs).array());
|
||||
opusInitializationData.add(ByteBuffer.allocate(Long.SIZE).putLong(seekPreRollNs).array());
|
||||
format = MediaFormat.createAudioFormat(
|
||||
MimeTypes.AUDIO_OPUS, OPUS_MAX_INPUT_SIZE, channelCount, sampleRate,
|
||||
opusInitializationData);
|
||||
|
|
|
|||
Loading…
Reference in a new issue