shithub: libvpx

Download patch

ref: 8ced62f2506c98e692de701728a9049947772352
parent: 5d5cc0d082910dcd15a46e3fc4297a7972f8d45c
author: Yaowu Xu <[email protected]>
date: Wed Oct 14 04:10:05 EDT 2015

fix a msvc compiler warning

Change-Id: Ifd6581c1bdb8d8f4b2ecf676c1a3d385dc129abf

--- a/vp10/encoder/rdopt.c
+++ b/vp10/encoder/rdopt.c
@@ -846,7 +846,7 @@
       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);