ref: 097afb6f43fbc9733fc1f69dd51b8795f1b7b8fa
parent: b0ddf48c24e9b52c342674f45347e7057ed99512
parent: 492cdb48be745a8ec69ca1b232ad98c306ae884b
author: Ranjit Kumar Tulabandu <ranjit.tulabandu@ittiam.com>
date: Tue Feb 19 23:35:35 EST 2019
Merge "Fix integer overflow issue in bits allocated"
--- a/vp9/encoder/vp9_firstpass.c
+++ b/vp9/encoder/vp9_firstpass.c
@@ -2339,7 +2339,7 @@
switch (gf_group->update_type[idx]) {
case ARF_UPDATE:
gf_group->bit_allocation[idx] =
- (int)((arf_depth_bits[gf_group->layer_depth[idx]] *
+ (int)(((int64_t)arf_depth_bits[gf_group->layer_depth[idx]] *
gf_group->gfu_boost[idx]) /
arf_depth_boost[gf_group->layer_depth[idx]]);
break;