]> granicus.if.org Git - libvpx/commitdiff
Fix compiling issues
authorYaowu Xu <yaowu@google.com>
Fri, 22 Jul 2016 16:30:52 +0000 (09:30 -0700)
committerYaowu Xu <yaowu@google.com>
Fri, 22 Jul 2016 16:43:22 +0000 (09:43 -0700)
Change-Id: I530348b12a1c039842ce4e33d21046fe63878f19

vp10/common/idct.c

index 9b70857fa2ec3235b9da1fd67eb2861725776a3d..22eff655bf657ff3ffdf7c5ca504ccdd9c4ba958 100644 (file)
@@ -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;
   }