rd_pick_palette_intra_sbuv: fix implicit float conv float->int as reported by -Wfloat-conversion Change-Id: I9e3d6ce9dbb0689f214afc8d5950f209275e883d
diff --git a/vp10/encoder/rdopt.c b/vp10/encoder/rdopt.c index b667fcf..d5a7939 100644 --- a/vp10/encoder/rdopt.c +++ b/vp10/encoder/rdopt.c
@@ -3817,12 +3817,12 @@ #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)