]> granicus.if.org Git - libvpx/commitdiff
Fix to visual studio build error.
authorMarco <marpan@google.com>
Thu, 21 May 2015 21:07:21 +0000 (14:07 -0700)
committerMarco <marpan@google.com>
Thu, 21 May 2015 21:08:32 +0000 (14:08 -0700)
Change-Id: Ide080141ebc064584574c861fb324fe64cc572cc

vp8/encoder/ratectrl.c

index f3050d3898d2a8fb4aab46323987e965721e5d0b..e8796a1fcfbf79521af071dbd8c393c1a38944c9 100644 (file)
@@ -1587,7 +1587,7 @@ int vp8_drop_encodedframe_overshoot(VP8_COMP *cpi, int Q) {
     // 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) {