mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Merge pull request #1968 from colinkho:opus
PiperOrigin-RevId: 705106170
This commit is contained in:
commit
c222bb8e03
1 changed files with 1 additions and 4 deletions
|
|
@ -107,12 +107,9 @@ public final class OpusDecoder
|
||||||
throw new OpusDecoderException("Invalid header length");
|
throw new OpusDecoderException("Invalid header length");
|
||||||
}
|
}
|
||||||
channelCount = getChannelCount(headerBytes);
|
channelCount = getChannelCount(headerBytes);
|
||||||
if (channelCount > 8) {
|
|
||||||
throw new OpusDecoderException("Invalid channel count: " + channelCount);
|
|
||||||
}
|
|
||||||
int gain = readSignedLittleEndian16(headerBytes, 16);
|
int gain = readSignedLittleEndian16(headerBytes, 16);
|
||||||
|
|
||||||
byte[] streamMap = new byte[8];
|
byte[] streamMap = new byte[channelCount];
|
||||||
int numStreams;
|
int numStreams;
|
||||||
int numCoupled;
|
int numCoupled;
|
||||||
if (headerBytes[18] == 0) { // Channel mapping
|
if (headerBytes[18] == 0) { // Channel mapping
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue