shithub: libvpx

Download patch

ref: 15cc8bc72f978c5dd1605f59f9dca0932e1c47f6
parent: 3e1e3ac7893851d1eb43cc6807a4716d11dc58cf
parent: 8ced62f2506c98e692de701728a9049947772352
author: Yaowu Xu <[email protected]>
date: Thu Oct 15 10:39:01 EDT 2015

Merge "fix a msvc compiler warning"

--- 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);