diff options
author | Hien Ho <hienho@google.com> | 2019-08-28 11:18:01 -0700 |
---|---|---|
committer | Hien Ho <hienho@google.com> | 2019-08-28 11:20:05 -0700 |
commit | 4973c57fe1379665e14246b295d61359ee4931ae (patch) | |
tree | 18fff25af6905295f3bb789289ae1c616a19f766 /vpx_dsp/x86 | |
parent | c5f298b71fa5e0a1e7be4d2ddb0b2cb8e81f3836 (diff) | |
download | libvpx-4973c57fe1379665e14246b295d61359ee4931ae.tar libvpx-4973c57fe1379665e14246b295d61359ee4931ae.tar.gz libvpx-4973c57fe1379665e14246b295d61359ee4931ae.tar.bz2 libvpx-4973c57fe1379665e14246b295d61359ee4931ae.zip |
vpx_dsp/x86/highbd_idct4x4_add_sse2: fix int sanitizer warnings
implicit conversion from type 'int' of value 49161 (32-bit, signed) to
type 'int16_t' (aka 'short') changed the value to -16375 (16-bit,
signed)
BUG=webm:1615
Change-Id: I3f18283609ac2ce365202a63ef61a47eb00c155b
Diffstat (limited to 'vpx_dsp/x86')
-rw-r--r-- | vpx_dsp/x86/highbd_idct4x4_add_sse2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vpx_dsp/x86/highbd_idct4x4_add_sse2.c b/vpx_dsp/x86/highbd_idct4x4_add_sse2.c index 2e54d2473..b9c8884f9 100644 --- a/vpx_dsp/x86/highbd_idct4x4_add_sse2.c +++ b/vpx_dsp/x86/highbd_idct4x4_add_sse2.c @@ -112,8 +112,8 @@ void vpx_highbd_idct4x4_16_add_sse2(const tran_low_t *input, uint16_t *dest, 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)) { |