summaryrefslogtreecommitdiff
path: root/vp9/encoder
diff options
context:
space:
mode:
authorTom Finegan <tomfinegan@google.com>2014-02-18 18:00:09 -0800
committerTom Finegan <tomfinegan@google.com>2014-02-20 12:01:47 -0800
commit595985334e63ec98e814f27997fdccadd7a16aa8 (patch)
treea0eb5ac1e7c45126f1dd61a4352d97b6a6ba356e /vp9/encoder
parent622451623590b8470a8c6fbaae6f0955e0e48451 (diff)
downloadlibvpx-595985334e63ec98e814f27997fdccadd7a16aa8.tar
libvpx-595985334e63ec98e814f27997fdccadd7a16aa8.tar.gz
libvpx-595985334e63ec98e814f27997fdccadd7a16aa8.tar.bz2
libvpx-595985334e63ec98e814f27997fdccadd7a16aa8.zip
vp9_encodeframe.c: Silence rdmult assignment warning with a cast.
Cast result of round() to int. Change-Id: Ib708fddfadde4c765001ce9723fda113fd0f4bf6
Diffstat (limited to 'vp9/encoder')
-rw-r--r--vp9/encoder/vp9_encodeframe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vp9/encoder/vp9_encodeframe.c b/vp9/encoder/vp9_encodeframe.c
index a2430bf7f..f4cad07d6 100644
--- a/vp9/encoder/vp9_encodeframe.c
+++ b/vp9/encoder/vp9_encodeframe.c
@@ -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];