Showing the changes to test/encoder/EncUT_DecodeMbAux.cpp (1 of 1 file). Show all
Unified · Split
| @@ -156,10 +156,10 @@ void WelsDequantHadamard2x2DcAnchor (int16_t* pDct, int16_t iMF) { · 155 unmodified lines | ||
| 156 | 156 | const int16_t iDelU = pDct[0] - pDct[2]; |
| 157 | 157 | const int16_t iSumD = pDct[1] + pDct[3]; |
| 158 | 158 | const int16_t iDelD = pDct[1] - pDct[3]; |
| 159 | − pDct[0] = (iSumU + iSumD) * iMF; | |
| 160 | − pDct[1] = (iSumU - iSumD) * iMF; | |
| 161 | − pDct[2] = (iDelU + iDelD) * iMF; | |
| 162 | − pDct[3] = (iDelU - iDelD) * iMF; | |
| 159 | + pDct[0] = ((iSumU + iSumD) * iMF)>>1; | |
| 160 | + pDct[1] = ((iSumU - iSumD) * iMF)>>1; | |
| 161 | + pDct[2] = ((iDelU + iDelD) * iMF)>>1; | |
| 162 | + pDct[3] = ((iDelU - iDelD) * iMF)>>1; | |
| 163 | 163 | } |
| 164 | 164 | TEST (DecodeMbAuxTest, WelsDequantIHadamard2x2Dc) { |
| 165 | 165 | int16_t iDct[4], iRefDct[4]; |