ref: cbd6eaa9241ff18160e06a64023ae4802cac8c0c
parent: 90a91cc683a8c52443de8a6720875712978a492e
parent: 82bbb230103ce9c1d1f5175b077a33ae45a13400
author: Adrian Grange <agrange@google.com>
date: Wed Apr 17 06:12:15 EDT 2013
Merge "Fixed overflow test on boost calculation" into experimental
--- a/vp9/encoder/vp9_firstpass.c
+++ b/vp9/encoder/vp9_firstpass.c
@@ -1963,7 +1963,7 @@
(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;
--
⑨