shithub: libvpx

Download patch

ref: d18c0bbe97585f9570850e52a4bbf7ba0a8c7e7e
parent: cfe6fa98f72cae9587152591ffd52035e71b9562
parent: 10b475ec67670795d4e836031bc3090e1d8d0bcc
author: Hien Ho <hienho@google.com>
date: Thu Oct 24 12:39:52 EDT 2019

Merge "vpx_dsp/x86/avg_intrin_sse2: fix int sanitizer warnings"

--- a/vpx_dsp/x86/avg_intrin_sse2.c
+++ b/vpx_dsp/x86/avg_intrin_sse2.c
@@ -571,7 +571,7 @@
   v1 = _mm_srli_epi64(sse, 32);
   sse = _mm_add_epi32(sse, v1);
 
-  mean = _mm_extract_epi16(sum, 0);
+  mean = (int16_t)_mm_extract_epi16(sum, 0);
 
   return _mm_cvtsi128_si32(sse) - ((mean * mean) >> (bwl + 2));
 }