From 8ced62f2506c98e692de701728a9049947772352 Mon Sep 17 00:00:00 2001 From: Yaowu Xu Date: Wed, 14 Oct 2015 08:10:05 -0700 Subject: [PATCH] fix a msvc compiler warning Change-Id: Ifd6581c1bdb8d8f4b2ecf676c1a3d385dc129abf --- vp10/encoder/rdopt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vp10/encoder/rdopt.c b/vp10/encoder/rdopt.c index 6989c66bd..a3b1895d6 100644 --- a/vp10/encoder/rdopt.c +++ b/vp10/encoder/rdopt.c @@ -846,7 +846,7 @@ void rd_pick_palette_intra_sby(VP10_COMP *cpi, MACROBLOCK *x, BLOCK_SIZE bsize, else #endif // CONFIG_VP9_HIGHBITDEPTH for (i = 0; i < k; ++i) - pmi->palette_colors[i] = clip_pixel(round(centroids[i])); + pmi->palette_colors[i] = clip_pixel((int)round(centroids[i])); pmi->palette_size[0] = k; vp10_calc_indices(data, centroids, indices, rows * cols, k, 1); -- 2.40.0