ref: d8428ae35da4e90a5fc799c4ad07779946664f0d
parent: 714a46a63c5434a4f18b52905e840516a5d85017
author: Yaowu Xu <[email protected]>
date: Fri Jun 19 05:04:29 EDT 2015
Fix a msvc compiler warning Change-Id: Ida8a04370895ed14bd118324ec2577da926e4648
--- a/vp9/encoder/vp9_ratectrl.c
+++ b/vp9/encoder/vp9_ratectrl.c
@@ -1775,7 +1775,7 @@
// Resize based on average QP over some window.
// Ignore samples close to key frame, since QP is usually high after key.
if (cpi->rc.frames_since_key > 2 * cpi->framerate) {
- const int window = 5 * cpi->framerate;
+ const int window = (int)(5 * cpi->framerate);
cpi->resize_avg_qp += cm->base_qindex;
if (cpi->rc.buffer_level < 0)
++cpi->resize_buffer_underflow;