shithub: libvpx

Download patch

ref: aa3d59fcf9867b00ae7f93219aebd29c9631ce8c
parent: b391b62a7ed1cbe231421eccb2ab55187e2ff12a
parent: 7811039d476f22276201523b1c8ce8b38824f264
author: Frank Galligan <fgalligan@google.com>
date: Thu May 8 04:49:04 EDT 2014

Merge "vp9_firstpass: Fix MSVC data loss warning."

--- a/vp9/encoder/vp9_firstpass.c
+++ b/vp9/encoder/vp9_firstpass.c
@@ -2402,8 +2402,8 @@
   const double progress =
       (double)(cpi->twopass.stats_in - cpi->twopass.stats_in_start) /
               (cpi->twopass.stats_in_end - cpi->twopass.stats_in_start);
-  const int bits_used = progress * rc->this_frame_target +
-                        (1.0 - progress) * rc->projected_frame_size;
+  const int bits_used = (int)(progress * rc->this_frame_target +
+                             (1.0 - progress) * rc->projected_frame_size);
 #endif
 
   cpi->twopass.bits_left -= bits_used;