Commit 14195f42 authored by Jonathan Matthews's avatar Jonathan Matthews

lv_map - ensure coeffs don't overflow in highbitdepth modes

BUG=aomedia:954
BUG=aomedia:956

Change-Id: Idc292c524bc3fea2a8a0e003d1a4cc9ae5799bd1
parent d867c9aa
......@@ -602,7 +602,7 @@ uint8_t av1_read_coeffs_txb(const AV1_COMMON *const cm, MACROBLOCKD *xd,
for (c = 0; c < *eob; ++c) {
const int16_t dqv = (c == 0) ? dequant[0] : dequant[1];
const int level = levels[scan[c]];
const int16_t t = ((level + tcoeffs[scan[c]]) * dqv) >> shift;
const tran_low_t t = ((level + tcoeffs[scan[c]]) * dqv) >> shift;
#if CONFIG_SYMBOLRATE
av1_record_coeff(counts, level);
#endif
......
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