shithub: libvpx

Download patch

ref: e5d4062962c0b8f844590ae6a3bf32d939ffc656
parent: 001baa5dd8bce66707a123de687a38c4da45cf9a
parent: d8428ae35da4e90a5fc799c4ad07779946664f0d
author: Yaowu Xu <yaowu@google.com>
date: Fri Jun 19 15:02:09 EDT 2015

Merge "Fix a msvc compiler warning"

--- 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;