mirror of
https://github.com/samsonjs/media.git
synced 2026-04-04 11:05:47 +00:00
Merge pull request #796 from souji1103/dev
Prevent ArrayIndexOutOfBoundsException when proguard is enabled
This commit is contained in:
commit
1be3f9dcbc
1 changed files with 2 additions and 1 deletions
|
|
@ -138,7 +138,8 @@ public final class ParsableBitArray {
|
|||
int returnValue = 0;
|
||||
|
||||
// While n >= 8, read whole bytes.
|
||||
while (n >= 8) {
|
||||
int numBytes = (n / 8);
|
||||
for (int i = 0; i < numBytes; i ++) {
|
||||
int byteValue;
|
||||
if (bitOffset != 0) {
|
||||
byteValue = ((data[byteOffset] & 0xFF) << bitOffset)
|
||||
|
|
|
|||
Loading…
Reference in a new issue