Commit cbd6eaa9 authored by Adrian Grange's avatar Adrian Grange Committed by Gerrit Code Review
Browse files

Merge "Fixed overflow test on boost calculation" into experimental

parents 90a91cc6 82bbb230
......@@ -1963,7 +1963,7 @@ static void define_gf_group(VP9_COMP *cpi, FIRSTPASS_STATS *this_frame) {
(cpi->baseline_gf_interval * 100) + (boost - 100);
// Prevent overflow
if (boost > 1028) { // TODO(agrange) Should this be 1024?
if (boost > 1023) {
int divisor = boost >> 10;
boost /= divisor;
allocation_chunks /= divisor;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment