0.1 % speedup to decoding

Change-Id: If2add8a8b6f339f1d4b6a9581ce8d3d0f792d372
This commit is contained in:
Jyrki Alakuijala 2013-06-28 12:33:01 +00:00 committed by James Zern
parent c606182edd
commit b7346a1ed2

View File

@ -171,11 +171,11 @@ static WEBP_INLINE int ReadSymbol(const HuffmanTree* tree,
// Decode the value from a binary tree. // Decode the value from a binary tree.
assert(node != NULL); assert(node != NULL);
while (HuffmanTreeNodeIsNotLeaf(node)) { do {
node = HuffmanTreeNextNode(node, bits & 1); node = HuffmanTreeNextNode(node, bits & 1);
bits >>= 1; bits >>= 1;
++bitpos; ++bitpos;
} } while (HuffmanTreeNodeIsNotLeaf(node));
VP8LSetBitPos(br, bitpos); VP8LSetBitPos(br, bitpos);
return node->symbol_; return node->symbol_;
} }