vp9/encoder/vp9_ratectrl.c:2171:23: runtime error: signed integer
overflow:
103079280 * -22 cannot be represented in type 'int'
Bug: chromium:1473268
Change-Id: Ic1de7d48e74d94c2a992e53ec4382b5b44dba7af
if (diff > 0) {
// Lower the target bandwidth for this frame.
const int pct_low = (int)VPXMIN(diff / one_pct_bits, oxcf->under_shoot_pct);
- target -= (target * pct_low) / 200;
+ target -= (int)(((int64_t)target * pct_low) / 200);
} else if (diff < 0) {
// Increase the target bandwidth for this frame.
const int pct_high =
(int)VPXMIN(-diff / one_pct_bits, oxcf->over_shoot_pct);
- target += (target * pct_high) / 200;
+ target += (int)(((int64_t)target * pct_high) / 200);
}
if (oxcf->rc_max_inter_bitrate_pct) {
const int max_rate =