From 2387024f417e18740340da8dd4ff3bc54997ffd9 Mon Sep 17 00:00:00 2001 From: Scott LaVarnway Date: Thu, 9 Nov 2017 12:26:43 -0800 Subject: [PATCH] runtime error fix: bitdepth_conversion_avx2.h Change-Id: I7364a157de39eb7137b599808474b8d46d19d376 --- vpx_dsp/x86/bitdepth_conversion_avx2.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vpx_dsp/x86/bitdepth_conversion_avx2.h b/vpx_dsp/x86/bitdepth_conversion_avx2.h index b8fd1cb58..3552c07cd 100644 --- a/vpx_dsp/x86/bitdepth_conversion_avx2.h +++ b/vpx_dsp/x86/bitdepth_conversion_avx2.h @@ -21,7 +21,8 @@ static INLINE __m256i load_tran_low(const tran_low_t *a) { #if CONFIG_VP9_HIGHBITDEPTH const __m256i a_low = _mm256_loadu_si256((const __m256i *)a); - return _mm256_packs_epi32(a_low, *(const __m256i *)(a + 8)); + const __m256i a_high = _mm256_loadu_si256((const __m256i *)(a + 8)); + return _mm256_packs_epi32(a_low, a_high); #else return _mm256_loadu_si256((const __m256i *)a); #endif