diff options
-rw-r--r-- | vp9/decoder/vp9_detokenize.c | 4 | ||||
-rw-r--r-- | vpx_dsp/quantize.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/vp9/decoder/vp9_detokenize.c b/vp9/decoder/vp9_detokenize.c index e250a5a35..c2e6b3d54 100644 --- a/vp9/decoder/vp9_detokenize.c +++ b/vp9/decoder/vp9_detokenize.c @@ -243,9 +243,9 @@ static int decode_coefs(const MACROBLOCKD *xd, PLANE_TYPE type, #endif // CONFIG_VP9_HIGHBITDEPTH #else if (read_bool(r, 128, &value, &count, &range)) { - dqcoeff[scan[c]] = -v; + dqcoeff[scan[c]] = (tran_low_t)-v; } else { - dqcoeff[scan[c]] = v; + dqcoeff[scan[c]] = (tran_low_t)v; } #endif // CONFIG_COEFFICIENT_RANGE_CHECKING ++c; diff --git a/vpx_dsp/quantize.c b/vpx_dsp/quantize.c index dfc22cd85..61818f692 100644 --- a/vpx_dsp/quantize.c +++ b/vpx_dsp/quantize.c @@ -156,7 +156,7 @@ void vpx_quantize_b_c(const tran_low_t *coeff_ptr, intptr_t n_coeffs, quant_shift_ptr[rc != 0]) >> 16; // quantization qcoeff_ptr[rc] = (tmp ^ coeff_sign) - coeff_sign; - dqcoeff_ptr[rc] = qcoeff_ptr[rc] * dequant_ptr[rc != 0]; + dqcoeff_ptr[rc] = (tran_low_t)(qcoeff_ptr[rc] * dequant_ptr[rc != 0]); if (tmp) eob = i; } |