Edited sao_edge_ddistortion_avx2 to avoid memory overflow

This commit is contained in:
Reima Hyvönen 2019-03-29 14:24:45 +02:00 committed by Pauli Oikkonen
parent 267ba1d6ce
commit 3496a57f7a

View file

@ -167,7 +167,8 @@ static int sao_edge_ddistortion_avx2(const kvz_pixel *orig_data,
tmp_sum_epi32 = _mm256_hadd_epi32(tmp_sum_epi32, tmp_sum_epi32);
tmp_sum_epi32 = _mm256_hadd_epi32(tmp_sum_epi32, tmp_sum_epi32);
sum += (_mm256_extract_epi32(tmp_sum_epi32, 0) + _mm256_extract_epi32(tmp_sum_epi32, 4));
sum += _mm256_extract_epi32(tmp_sum_epi32, 0);
sum += _mm256_extract_epi32(tmp_sum_epi32, 4);
break;
default: