From f4888f77022407b773cb55d4ef02757873d428ce Mon Sep 17 00:00:00 2001 From: Pascal Massimino Date: Thu, 10 Mar 2011 14:57:38 -0800 Subject: [PATCH] emit 9 - nb_bits trailing zeros instead of 8 Change-Id: I3bd3eb8dac5bcc9fb0d41612ec610ca2046e8c7b --- src/enc/bit_writer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/enc/bit_writer.c b/src/enc/bit_writer.c index a40f9aee..3656a7e2 100644 --- a/src/enc/bit_writer.c +++ b/src/enc/bit_writer.c @@ -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_;