mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2025-08-05 04:25:29 -04:00
Minor clean-up.
This commit is contained in:
parent
c1d4e474f0
commit
9053fb3816
@ -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;
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user