From d8428ae35da4e90a5fc799c4ad07779946664f0d Mon Sep 17 00:00:00 2001 From: Yaowu Xu Date: Fri, 19 Jun 2015 09:04:29 -0700 Subject: [PATCH] Fix a msvc compiler warning Change-Id: Ida8a04370895ed14bd118324ec2577da926e4648 --- vp9/encoder/vp9_ratectrl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vp9/encoder/vp9_ratectrl.c b/vp9/encoder/vp9_ratectrl.c index 158581b81..425073fcd 100644 --- a/vp9/encoder/vp9_ratectrl.c +++ b/vp9/encoder/vp9_ratectrl.c @@ -1775,7 +1775,7 @@ int vp9_resize_one_pass_cbr(VP9_COMP *cpi) { // 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; -- 2.40.0