]> granicus.if.org Git - libvpx/commitdiff
vp9_encodeframe.c: Silence rdmult assignment warning with a cast.
authorTom Finegan <tomfinegan@google.com>
Wed, 19 Feb 2014 02:00:09 +0000 (18:00 -0800)
committerTom Finegan <tomfinegan@google.com>
Thu, 20 Feb 2014 20:01:47 +0000 (12:01 -0800)
Cast result of round() to int.

Change-Id: Ib708fddfadde4c765001ce9723fda113fd0f4bf6

vp9/encoder/vp9_encodeframe.c

index a2430bf7f04561f571fa8904681a7ad7acf12b0f..f4cad07d6b76f0be79c8c14762a2d1d05cc733b1 100644 (file)
@@ -684,7 +684,7 @@ static void rd_pick_sb_modes(VP9_COMP *cpi, const TileInfo *const tile,
 
   if (cpi->oxcf.aq_mode == VARIANCE_AQ) {
     vp9_clear_system_state();
-    x->rdmult = round(x->rdmult * rdmult_ratio);
+    x->rdmult = (int)round(x->rdmult * rdmult_ratio);
   } else if (cpi->oxcf.aq_mode == COMPLEXITY_AQ) {
     const int mi_offset = mi_row * cm->mi_cols + mi_col;
     unsigned char complexity = cpi->complexity_map[mi_offset];