diff --git a/src/utils/bit_reader.c b/src/utils/bit_reader.c index ab7a8273..677fa01b 100644 --- a/src/utils/bit_reader.c +++ b/src/utils/bit_reader.c @@ -179,7 +179,7 @@ void VP8LFillBitWindow(VP8LBitReader* const br) { } #endif 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; } }