mirror of
https://github.com/samsonjs/media.git
synced 2026-03-25 09:25:53 +00:00
Remove ChannelCount Max Limitation on OpusDecoder
This commit is contained in:
parent
8d2f531470
commit
af32e859ed
1 changed files with 2 additions and 4 deletions
|
|
@ -107,12 +107,10 @@ public final class 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
|
||||
|
|
|
|||
Loading…
Reference in a new issue