Minor clean-up.

This commit is contained in:
Harald Kuhr 2020-12-11 18:28:48 +01:00
parent c1d4e474f0
commit 9053fb3816
2 changed files with 2 additions and 3 deletions

View File

@ -21,7 +21,7 @@ public final class LSBBitReader {
public long readBits(int bits) throws IOException { public long readBits(int bits) throws IOException {
long result = 0; long result = 0;
for (int i = 0; i < bits; i++) { for (int i = 0; i < bits; i++) {
result |= readBit() << i; result |= (long) readBit() << i;
} }
return result; return result;

View File

@ -1034,9 +1034,8 @@ public final class VP8Frame {
long partitionsStart = offset + first_partition_length_in_bytes; long partitionsStart = offset + first_partition_length_in_bytes;
long partition = partitionsStart; long partition = partitionsStart;
multiTokenPartition = bc.readLiteral(2); multiTokenPartition = bc.readLiteral(2);
// logger.log("multi_token_partition: " + multiTokenPartition);
int num_part = 1 << multiTokenPartition; int num_part = 1 << multiTokenPartition;
// logger.log("num_part: " + num_part);
if (num_part > 1) { if (num_part > 1) {
partition += 3 * (num_part - 1); partition += 3 * (num_part - 1);
} }