[x265] [PATCH] fix overflow error in satd_4x4 for psyCost_ss
Divya Manivannan
divya at multicorewareinc.com
Thu Jan 8 05:46:36 CET 2015
# HG changeset patch
# User Divya Manivannan <divya at multicorewareinc.com>
# Date 1420692382 -19800
# Thu Jan 08 10:16:22 2015 +0530
# Node ID fe49fc29161f832c8c07f453268a0cc4fc0ce975
# Parent ff32d97fe59ce9d8dc04d785c605f44d18dcdcee
fix overflow error in satd_4x4 for psyCost_ss
diff -r ff32d97fe59c -r fe49fc29161f source/common/pixel.cpp
--- a/source/common/pixel.cpp Wed Jan 07 14:27:33 2015 +0530
+++ b/source/common/pixel.cpp Thu Jan 08 10:16:22 2015 +0530
@@ -243,9 +243,9 @@
int satd_4x4(const int16_t* pix1, intptr_t stride_pix1, const int16_t* pix2, intptr_t stride_pix2)
{
- ssum2_t tmp[4][2];
- ssum2_t a0, a1, a2, a3, b0, b1;
- ssum2_t sum = 0;
+ int64_t tmp[4][2];
+ int64_t a0, a1, a2, a3, b0, b1;
+ int64_t sum = 0;
for (int i = 0; i < 4; i++, pix1 += stride_pix1, pix2 += stride_pix2)
{
More information about the x265-devel
mailing list