mirror of
https://github.com/webmproject/libwebp.git
synced 2024-11-20 04:18:26 +01:00
reset eof_ at construction time
not critical, but makes things sound Change-Id: Ib013259924d38dca6f7521d7f1ab09ecc1d3b933
This commit is contained in:
parent
a7ee0559f3
commit
9145f3bc93
@ -27,6 +27,7 @@ int VP8Init(VP8BitReader* const br, const uint8_t* buf, uint32_t size) {
|
|||||||
br->left_ = -8;
|
br->left_ = -8;
|
||||||
br->value_ = (buf[0] << 8) | buf[1];
|
br->value_ = (buf[0] << 8) | buf[1];
|
||||||
br->range_ = 255 - 1;
|
br->range_ = 255 - 1;
|
||||||
|
br->eof_ = 0;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user