ref: af3b0de732e2c90dd7216894559f3b1a5b5f21e5
parent: ab7cd6d0689fbc1ba84a5460a1d81cfb20d3807c
author: paulwilkins <paulwilkins@google.com>
date: Wed Aug 17 06:50:18 EDT 2016
Add casting to fix warning. Frame bits can safely be stored int but group bits (kf or arf) use 64bit. Change-Id: I0800f2a28070f8749110a95721c116fc56987885
--- a/vp9/encoder/vp9_firstpass.c
+++ b/vp9/encoder/vp9_firstpass.c
@@ -1972,11 +1972,11 @@
// The last frame in the group is used less as a predictor so reduce
// its allocation a little.
if (normal_frames > 1) {
- normal_frame_bits = total_group_bits / normal_frames;
+ normal_frame_bits = (int)(total_group_bits / normal_frames);
last_frame_reduction = normal_frame_bits / 16;
last_frame_bits = normal_frame_bits - last_frame_reduction;
} else {
- normal_frame_bits = total_group_bits;
+ normal_frame_bits = (int)total_group_bits;
last_frame_bits = normal_frame_bits;
last_frame_reduction = 0;
}