ref: c12e61d5a3b6e700fd46190aeca62341ed5b5b6f
parent: f180945c18e86dfde8538f38f44d9839f34bf47c
parent: 159dd0cc395e1be12c28d994af0dbd4407448e01
author: Yaowu Xu <[email protected]>
date: Thu Jun 16 14:09:09 EDT 2016
Merge "Fix ubsan warning: vp8/encoder/denoising.c"
--- a/vp8/encoder/denoising.c
+++ b/vp8/encoder/denoising.c
@@ -529,7 +529,7 @@
// Bias on zero motion vector sse.
const int zero_bias = denoiser->denoise_pars.denoise_mv_bias;
zero_mv_sse = (unsigned int)((int64_t)zero_mv_sse * zero_bias / 100);
- sse_diff = zero_mv_sse - best_sse;
+ sse_diff = (int)zero_mv_sse - (int)best_sse;
saved_mbmi = *mbmi;