Merge "VPLBitReader bugfix: Catch error if bit_pos > LBITS too."

This commit is contained in:
James Zern 2013-10-31 16:38:15 -07:00 committed by Gerrit Code Review
commit ebc9b1eedf

View File

@ -179,7 +179,7 @@ void VP8LFillBitWindow(VP8LBitReader* const br) {
} }
#endif #endif
ShiftBytes(br); // Slow path. ShiftBytes(br); // Slow path.
if (br->pos_ == br->len_ && br->bit_pos_ == LBITS) { if (br->pos_ == br->len_ && br->bit_pos_ >= LBITS) {
br->eos_ = 1; br->eos_ = 1;
} }
} }