emit 9 - nb_bits trailing zeros instead of 8

Change-Id: I3bd3eb8dac5bcc9fb0d41612ec610ca2046e8c7b
This commit is contained in:
Pascal Massimino 2011-03-10 14:57:38 -08:00
parent 3db6525574
commit f4888f7702

View File

@ -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_;