Commit 29062db3 authored by Yaowu Xu's avatar Yaowu Xu Committed by Gerrit Code Review
Browse files

Merge "Add range checking for decoded coefficients."

parents cfc337aa 9751aa12
......@@ -190,7 +190,11 @@ static int decode_coefs(VP9_COMMON *cm, const MACROBLOCKD *xd, PLANE_TYPE type,
v = (val * dqv) >> dq_shift;
dqcoeff[scan[c]] = check_range(vp9_read_bit(r) ? -v : v);
dqcoeff[scan[c]] = vp9_read_bit(r) ? -v : v;
token_cache[scan[c]] = vp9_pt_energy_class[token];
ctx = get_coef_context(nb, token_cache, c);
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