summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRanjit Kumar Tulabandu <ranjit.tulabandu@ittiam.com>2019-02-20 04:35:35 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2019-02-20 04:35:35 +0000
commit097afb6f43fbc9733fc1f69dd51b8795f1b7b8fa (patch)
tree0e72f083441f59f8f88e07fcf82014633f5321d6
parentb0ddf48c24e9b52c342674f45347e7057ed99512 (diff)
parent492cdb48be745a8ec69ca1b232ad98c306ae884b (diff)
downloadlibvpx-097afb6f43fbc9733fc1f69dd51b8795f1b7b8fa.tar
libvpx-097afb6f43fbc9733fc1f69dd51b8795f1b7b8fa.tar.gz
libvpx-097afb6f43fbc9733fc1f69dd51b8795f1b7b8fa.tar.bz2
libvpx-097afb6f43fbc9733fc1f69dd51b8795f1b7b8fa.zip
Merge "Fix integer overflow issue in bits allocated"
-rw-r--r--vp9/encoder/vp9_firstpass.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vp9/encoder/vp9_firstpass.c b/vp9/encoder/vp9_firstpass.c
index 5cfffe6b5..06dd4fb02 100644
--- a/vp9/encoder/vp9_firstpass.c
+++ b/vp9/encoder/vp9_firstpass.c
@@ -2339,7 +2339,7 @@ static void allocate_gf_group_bits(VP9_COMP *cpi, int64_t gf_group_bits,
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;