shithub: libvpx

Download patch

ref: 87e08f4d9fa474ef5a4c7e57df233494d1429346
parent: 255bcf869707fc0b4ccc2cbdf6ef2fc05dd09ecb
author: Yaowu Xu <[email protected]>
date: Tue Nov 3 06:22:58 EST 2015

Fix a msvc warning

Change-Id: Id5b8f597fb275395232559fea7bfeb56912b88a1

--- a/vp9/encoder/vp9_noise_estimate.c
+++ b/vp9/encoder/vp9_noise_estimate.c
@@ -186,7 +186,7 @@
       // Normalize.
       avg_est = (avg_est << 8) / num_samples;
       // Update noise estimate.
-      ne->value = (3 * ne->value + avg_est) >> 2;
+      ne->value = (int)((3 * ne->value + avg_est) >> 2);
       ne->count++;
       if (ne->count == num_frames_estimate) {
         // Reset counter and check noise level condition.