Merge "Fixed overflow test on boost calculation" into experimental
This commit is contained in:
@@ -1963,7 +1963,7 @@ static void define_gf_group(VP9_COMP *cpi, FIRSTPASS_STATS *this_frame) {
|
|||||||
(cpi->baseline_gf_interval * 100) + (boost - 100);
|
(cpi->baseline_gf_interval * 100) + (boost - 100);
|
||||||
|
|
||||||
// Prevent overflow
|
// Prevent overflow
|
||||||
if (boost > 1028) { // TODO(agrange) Should this be 1024?
|
if (boost > 1023) {
|
||||||
int divisor = boost >> 10;
|
int divisor = boost >> 10;
|
||||||
boost /= divisor;
|
boost /= divisor;
|
||||||
allocation_chunks /= divisor;
|
allocation_chunks /= divisor;
|
||||||
|
Reference in New Issue
Block a user