ref: cab66c93a7a34958897f1a9e426e34c99119bcd9
parent: 77aaf2ea8e23b85541ff63e84328579b5cd8b62a
parent: cc26f561f44ecd8632294720fc0458307d9ab55a
author: Licai Guo <licaguo@cisco.com>
date: Tue Apr 15 10:38:13 EDT 2014
Merge pull request #687 from JuannyWang/decMbAuxBugFix [Encoder UT] decMbAux UT bug fix
--- a/test/encoder/EncUT_DecodeMbAux.cpp
+++ b/test/encoder/EncUT_DecodeMbAux.cpp
@@ -368,7 +368,7 @@
iRefDst[i*FDEC_STRIDE+j] = iPred[i*FDEC_STRIDE+j] = rand() & 255;
for(int i = 0; i < 4; i++)
for(int j = 0; j < 4; j++)
- iRefDct[i][j] = iDct[i*4+j] = (rand() & 65535) - 32768;
+ iRefDct[i][j] = iDct[i*4+j] = (rand() & ((1<<15)-1)) - (1<<14); //2^14 limit, (2^15+32) will cause overflow for SSE2.
WelsIDctRecI16x16DcAnchor(iRefDst, iRefDct);
WelsIDctRecI16x16Dc_sse2(iRec, FDEC_STRIDE, iPred, FDEC_STRIDE, iDct);
int ok = -1;