ref: bbb7f55d8c9669b1cabcb9e8f3592899b91feefb
parent: f40c00b206ee6b405ce44a46f6e2adf6906bd41b
parent: 4973c57fe1379665e14246b295d61359ee4931ae
author: Hien Ho <hienho@google.com>
date: Wed Aug 28 16:41:16 EDT 2019
Merge "vpx_dsp/x86/highbd_idct4x4_add_sse2: fix int sanitizer warnings"
--- a/vpx_dsp/x86/highbd_idct4x4_add_sse2.c
+++ b/vpx_dsp/x86/highbd_idct4x4_add_sse2.c
@@ -112,8 +112,8 @@
min_input = _mm_min_epi16(min_input, _mm_srli_si128(min_input, 4));
max_input = _mm_max_epi16(max_input, _mm_srli_si128(max_input, 2));
min_input = _mm_min_epi16(min_input, _mm_srli_si128(min_input, 2));
- max = _mm_extract_epi16(max_input, 0);
- min = _mm_extract_epi16(min_input, 0);
+ max = (int16_t)_mm_extract_epi16(max_input, 0);
+ min = (int16_t)_mm_extract_epi16(min_input, 0);
}
if (bd == 8 || (max < 4096 && min >= -4096)) {