Merge "Fix ubsan warning: vp8/encoder/denoising.c"

This commit is contained in:
Yaowu Xu 2016-06-16 18:09:09 +00:00 committed by Gerrit Code Review
commit c12e61d5a3

View File

@ -529,7 +529,7 @@ void vp8_denoiser_denoise_mb(VP8_DENOISER *denoiser,
// 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;