diff --git a/test/dct_partial_test.cc b/test/dct_partial_test.cc index 41f68955b..52c925cb7 100644 --- a/test/dct_partial_test.cc +++ b/test/dct_partial_test.cc @@ -46,7 +46,7 @@ tran_low_t partial_fdct_ref(const Buffer &in, int size) { } switch (size) { - case 4: sum <<= 1; break; + case 4: sum *= 2; break; case 8: /*sum = sum;*/ break; case 16: sum >>= 1; break; case 32: sum >>= 3; break; diff --git a/vpx_dsp/fwd_txfm.c b/vpx_dsp/fwd_txfm.c index aa5960109..6dcb3ba66 100644 --- a/vpx_dsp/fwd_txfm.c +++ b/vpx_dsp/fwd_txfm.c @@ -84,7 +84,7 @@ void vpx_fdct4x4_1_c(const int16_t *input, tran_low_t *output, int stride) { for (r = 0; r < 4; ++r) for (c = 0; c < 4; ++c) sum += input[r * stride + c]; - output[0] = sum << 1; + output[0] = sum * 2; } void vpx_fdct8x8_c(const int16_t *input, tran_low_t *final_output, int stride) {