From 3826383ca12811dd90874ec00bfd61050fed0d3d Mon Sep 17 00:00:00 2001 From: Yaowu Xu Date: Fri, 22 Jul 2016 09:30:52 -0700 Subject: [PATCH] Fix compiling issues Change-Id: I530348b12a1c039842ce4e33d21046fe63878f19 --- vp10/common/idct.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/vp10/common/idct.c b/vp10/common/idct.c index 9b70857fa..22eff655b 100644 --- a/vp10/common/idct.c +++ b/vp10/common/idct.c @@ -1172,9 +1172,10 @@ void vp10_highbd_iht4x8_32_add_c(const tran_low_t *input, uint8_t *dest8, // inverse transform row vectors, and transpose for (i = 0; i < 8; ++i) { HIGH_IHT_4x8[tx_type].rows(input, outtmp, bd); - for (j = 0; j < 4; ++j) - out[j][i] = (tran_low_t)highbd_dct_const_round_shift(outtmp[j] * Sqrt2, - bd); + for (j = 0; j < 4; ++j) { + out[j][i] = HIGHBD_WRAPLOW( + highbd_dct_const_round_shift(outtmp[j] * Sqrt2), bd); + } input += 4; } @@ -1227,9 +1228,10 @@ void vp10_highbd_iht8x4_32_add_c(const tran_low_t *input, uint8_t *dest8, // inverse transform row vectors, and transpose for (i = 0; i < 4; ++i) { HIGH_IHT_8x4[tx_type].rows(input, outtmp, bd); - for (j = 0; j < 8; ++j) - out[j][i] = (tran_low_t)highbd_dct_const_round_shift(outtmp[j] * Sqrt2, - bd); + for (j = 0; j < 8; ++j) { + out[j][i] = HIGHBD_WRAPLOW( + highbd_dct_const_round_shift(outtmp[j] * Sqrt2), bd); + } input += 8; } -- 2.40.0