diff --git a/source/Lib/CommonLib/x86/InterpolationFilterX86.h b/source/Lib/CommonLib/x86/InterpolationFilterX86.h index da794fa1eaf7d09213ace0a9101e1539eaed1c4a..449958c77b1f89be258955535a726dfa207c6425 100644 --- a/source/Lib/CommonLib/x86/InterpolationFilterX86.h +++ b/source/Lib/CommonLib/x86/InterpolationFilterX86.h @@ -2636,8 +2636,7 @@ void xWeightedGeoBlk_SSE(const PredictionUnit &pu, const uint32_t width, const u { __m256i s0 = _mm256_lddqu_si256((__m256i *) (src0 + x)); // why not aligned with 128/256 bit boundaries __m256i s1 = _mm256_lddqu_si256((__m256i *) (src1 + x)); - - __m256i w0 = _mm256_lddqu_si256((__m256i *) (weight + x)); + __m256i w0; if (compIdx != COMPONENT_Y && pu.chromaFormat != CHROMA_444) { const __m256i mask = _mm256_set_epi16(0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1); @@ -2849,8 +2848,7 @@ void xWeightedGeoBlkRounded_SSE(const PredictionUnit &pu, const uint32_t width, { __m256i s0 = _mm256_lddqu_si256((__m256i *) (src0 + x)); // why not aligned with 128/256 bit boundaries __m256i s1 = _mm256_lddqu_si256((__m256i *) (src1 + x)); - - __m256i w0 = _mm256_lddqu_si256((__m256i *) (weight + x)); + __m256i w0; if (compIdx != COMPONENT_Y && pu.chromaFormat != CHROMA_444) { const __m256i mask = _mm256_set_epi16(0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1);