Incorrect bit allocation in forced KF groups.
authorPaul Wilkins <paulwilkins@google.com>
Tue, 25 Jan 2011 12:29:06 +0000 (12:29 +0000)
committerPaul Wilkins <paulwilkins@google.com>
Tue, 25 Jan 2011 12:29:06 +0000 (12:29 +0000)
commit336aa0b7da8a35ba57400ce92fc016fc7fb35233
treea30d05e724a0958dc18acfb8ba8f7dd5dd5356be
parentd3e9409bb07e6411ff867935883bd5d56d2f9041
Incorrect bit allocation in forced KF groups.

The old 2 pass code estimated error distribution when coding a
forced (by interval) key frame. The result of this was that in some
cases, when allocating bits at the GF group level within a KF
group there was either a glut of bits or starvation of bits at the end
of the KF group.

Added code to rescan and get the correct data once the position of
a forced key frame has been determined.

Change-Id: I0c811675ef3f9e4109d14bd049d7641682ffcf11
vp8/encoder/firstpass.c