mirror of
https://github.com/androidx/media.git
synced 2025-05-08 08:00:49 +08:00
Merge pull request #796 from souji1103/dev
Prevent ArrayIndexOutOfBoundsException when proguard is enabled
This commit is contained in:
commit
1be3f9dcbc
@ -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…
x
Reference in New Issue
Block a user