Skip to content

Commit

Permalink
Merge pull request #1968 from colinkho:opus
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 705106170
  • Loading branch information
copybara-github committed Dec 11, 2024
2 parents da05a1a + b2e8489 commit c222bb8
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,9 @@ public OpusDecoder(
throw new OpusDecoderException("Invalid header length");
}
channelCount = getChannelCount(headerBytes);
if (channelCount > 8) {
throw new OpusDecoderException("Invalid channel count: " + channelCount);
}
int gain = readSignedLittleEndian16(headerBytes, 16);

byte[] streamMap = new byte[8];
byte[] streamMap = new byte[channelCount];
int numStreams;
int numCoupled;
if (headerBytes[18] == 0) { // Channel mapping
Expand Down

0 comments on commit c222bb8

Please sign in to comment.