ref: 053625e4cd20a9bef11e76c6b89d8027474c9f29
parent: c9725813db4413ed4f4d8fcf11c4234ed9c8fe2e
author: Adrian Grange <[email protected]>
date: Wed Feb 11 04:41:47 EST 2015
Add cast to convert double to int Change-Id: I7f63c2940256a5dadf9a29a853809290dd9e98ed
--- a/vp9/encoder/vp9_ratectrl.c
+++ b/vp9/encoder/vp9_ratectrl.c
@@ -1173,8 +1173,8 @@
// Modify frame size target when down-scaling.
if (cpi->oxcf.resize_mode == RESIZE_DYNAMIC &&
rc->frame_size_selector != UNSCALED)
- rc->this_frame_target =
- rc->this_frame_target * rate_thresh_mult[rc->frame_size_selector];
+ rc->this_frame_target = (int)(rc->this_frame_target
+ * rate_thresh_mult[rc->frame_size_selector]);
// Target rate per SB64 (including partial SB64s.
rc->sb64_target_rate = ((int64_t)rc->this_frame_target * 64 * 64) /