]> granicus.if.org Git - libvpx/commitdiff
Fix a msvc compiler warning
authorYaowu Xu <yaowu@google.com>
Fri, 19 Jun 2015 16:04:29 +0000 (09:04 -0700)
committerYaowu Xu <yaowu@google.com>
Fri, 19 Jun 2015 16:04:29 +0000 (09:04 -0700)
Change-Id: Ida8a04370895ed14bd118324ec2577da926e4648

vp9/encoder/vp9_ratectrl.c

index 158581b8133f04f5f5718eeb532e6b54e2ecad96..425073fcd12cc3c97111977bd8de69b0e5ff1c86 100644 (file)
@@ -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;