mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-30 20:54:07 +00:00
Edited sao_edge_ddistortion_avx2 to avoid memory overflow
This commit is contained in:
parent
267ba1d6ce
commit
3496a57f7a
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue