From d2fa9fe85320d0ba8e6e0b48b3e5050a1c2d8cd4 Mon Sep 17 00:00:00 2001 From: James Zern Date: Fri, 22 Jul 2016 13:21:55 -0700 Subject: [PATCH] rd_pick_palette_intra_sbuv: fix implicit float conv float->int as reported by -Wfloat-conversion Change-Id: I9e3d6ce9dbb0689f214afc8d5950f209275e883d --- vp10/encoder/rdopt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vp10/encoder/rdopt.c b/vp10/encoder/rdopt.c index b667fcf85..d5a793903 100644 --- a/vp10/encoder/rdopt.c +++ b/vp10/encoder/rdopt.c @@ -3817,12 +3817,12 @@ static void rd_pick_palette_intra_sbuv(VP10_COMP *cpi, MACROBLOCK *x, #if CONFIG_VP9_HIGHBITDEPTH if (cpi->common.use_highbitdepth) pmi->palette_colors[i * PALETTE_MAX_SIZE + j] = - clip_pixel_highbd(roundf(centroids[j * 2 + i - 1]), + clip_pixel_highbd((int)lroundf(centroids[j * 2 + i - 1]), cpi->common.bit_depth); else #endif // CONFIG_VP9_HIGHBITDEPTH pmi->palette_colors[i * PALETTE_MAX_SIZE + j] = - clip_pixel(roundf(centroids[j * 2 + i - 1])); + clip_pixel((int)lroundf(centroids[j * 2 + i - 1])); } } for (r = 0; r < rows; ++r)