diff --git a/src/dec/bits.c b/src/dec/bits.c index a51775d6..94b8e998 100644 --- a/src/dec/bits.c +++ b/src/dec/bits.c @@ -22,12 +22,12 @@ void VP8Init(VP8BitReader* const br, const uint8_t* buf, uint32_t size) { assert(br); assert(buf); br->range_ = 255 - 1; - br->eof_ = 0; br->buf_ = buf; br->buf_end_ = buf + size; // Need two initial bytes. br->value_ = (VP8GetByte(br) << 8) | VP8GetByte(br); br->left_ = -8; + br->eof_ = 0; } const uint8_t kVP8Log2Range[128] = {