mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-25 21:28:22 +01:00
emit 9 - nb_bits trailing zeros instead of 8
Change-Id: I3bd3eb8dac5bcc9fb0d41612ec610ca2046e8c7b
This commit is contained in:
parent
3db6525574
commit
f4888f7702
@ -162,7 +162,7 @@ int VP8BitWriterInit(VP8BitWriter* const bw, size_t expected_size) {
|
||||
}
|
||||
|
||||
uint8_t* VP8BitWriterFinish(VP8BitWriter* const bw) {
|
||||
VP8PutValue(bw, 0, 8 - bw->nb_bits_);
|
||||
VP8PutValue(bw, 0, 9 - bw->nb_bits_);
|
||||
bw->nb_bits_ = 0; // pad with zeroes
|
||||
kFlush(bw);
|
||||
return bw->buf_;
|
||||
|
Loading…
Reference in New Issue
Block a user