Commit d2fa9fe8 authored by James Zern's avatar James Zern

rd_pick_palette_intra_sbuv: fix implicit float conv

float->int as reported by -Wfloat-conversion

Change-Id: I9e3d6ce9dbb0689f214afc8d5950f209275e883d
parent d2e11e97
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment