Commit 8cbf9134 authored by Sebastien Alaiwan's avatar Sebastien Alaiwan

decodetxb.c: homogenize types for local 't'

Change-Id: I4b271259a2c29619ac7a066bedb958400187ac20
parent c84e32f1
......@@ -357,7 +357,7 @@ uint8_t av1_read_coeffs_txb(const AV1_COMMON *const cm, MACROBLOCKD *const xd,
// decode 0-th order Golomb code
*level = COEFF_BASE_RANGE + 1 + NUM_BASE_LEVELS;
// Save golomb in tcoeffs because adding it to level may incur overflow
tran_high_t t = *level + read_golomb(xd, r, counts);
tran_low_t t = *level + read_golomb(xd, r, counts);
cul_level += (int)t;
#if CONFIG_NEW_QUANT
dqv_val = &dq_val[pos != 0][0];
......@@ -373,7 +373,7 @@ uint8_t av1_read_coeffs_txb(const AV1_COMMON *const cm, MACROBLOCKD *const xd,
#endif // !CONFIG_DAALA_TX
#endif // CONFIG_NEW_QUANT
if (signs[pos]) t = -t;
tcoeffs[pos] = clamp((tran_low_t)t, min_value, max_value);
tcoeffs[pos] = clamp(t, min_value, max_value);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment