From 9145f3bc93b67a07ea9f67a6842b7ceb26e23770 Mon Sep 17 00:00:00 2001 From: Pascal Massimino Date: Thu, 2 Dec 2010 11:31:53 -0800 Subject: [PATCH] reset eof_ at construction time not critical, but makes things sound Change-Id: Ib013259924d38dca6f7521d7f1ab09ecc1d3b933 --- src/bits.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bits.c b/src/bits.c index 1d369389..4baa25ad 100644 --- a/src/bits.c +++ b/src/bits.c @@ -27,6 +27,7 @@ int VP8Init(VP8BitReader* const br, const uint8_t* buf, uint32_t size) { br->left_ = -8; br->value_ = (buf[0] << 8) | buf[1]; br->range_ = 255 - 1; + br->eof_ = 0; return 1; }