correct quantizer initialization
authorJohn Koleszar <jkoleszar@google.com>
Fri, 4 Feb 2011 16:36:04 +0000 (11:36 -0500)
committerJohn Koleszar <jkoleszar@google.com>
Fri, 4 Feb 2011 16:37:47 +0000 (11:37 -0500)
commit63fc44dfa5c459c3736498f1f6e618cff3c56eeb
treec9cc9c4c3388d22d7fd852d13f27a2e6bc4bc1a3
parent6bf7e2cc3777921477024bf4ed28fde28f02ca07
correct quantizer initialization

The encoder was not correctly catching transitions in the quantizer
deltas. If a delta_q was set, then the quantizer would be reinitialized
on every frame, but if they transitioned to 0, the quantizer would
not be reinitialized, leading to a encode-decode mismatch.

This bug was triggered by commit 999e155, which sets a Y2 delta Q
for very low base Q levels.

Change-Id: Ia6733464a55ee4ff2edbb82c0873980d345446f5
vp8/encoder/encodeframe.c
vp8/encoder/onyx_if.c