shithub: libvpx

Download patch

ref: 7ca17435d51111d7127586ed592480f9f85a8843
parent: da8c3bf218b36382894fc664aa2c1a1f592b7006
author: Marco <[email protected]>
date: Thu May 21 10:07:21 EDT 2015

Fix to visual studio build error.

Change-Id: Ide080141ebc064584574c861fb324fe64cc572cc

--- a/vp8/encoder/ratectrl.c
+++ b/vp8/encoder/ratectrl.c
@@ -1587,7 +1587,7 @@
     // Threshold for the average (over all macroblocks) of the pixel-sum
     // residual error over 16x16 block. Should add QP dependence on threshold?
     int thresh_pred_err_mb = (256 << 4);
-    int pred_err_mb = cpi->mb.prediction_error / cpi->common.MBs;
+    int pred_err_mb = (int)(cpi->mb.prediction_error / cpi->common.MBs);
     if (Q < thresh_qp &&
         cpi->projected_frame_size > thresh_rate &&
         pred_err_mb > thresh_pred_err_mb) {