shithub: libvpx

Download patch

ref: 29062db37fa8eb2fef0949a90a8daea6cb5a4dbc
parent: cfc337aae8dabc2e4e1af28506d58230dc9de5c3
parent: 9751aa1264b9cff20b729bbe825c6ff25ff47a12
author: Yaowu Xu <[email protected]>
date: Tue Oct 7 08:36:56 EDT 2014

Merge "Add range checking for decoded coefficients."

--- a/vp9/decoder/vp9_detokenize.c
+++ b/vp9/decoder/vp9_detokenize.c
@@ -190,7 +190,11 @@
       }
     }
     v = (val * dqv) >> dq_shift;
+#if CONFIG_COEFFICIENT_RANGE_CHECKING
+    dqcoeff[scan[c]] = check_range(vp9_read_bit(r) ? -v : v);
+#else
     dqcoeff[scan[c]] = vp9_read_bit(r) ? -v : v;
+#endif
     token_cache[scan[c]] = vp9_pt_energy_class[token];
     ++c;
     ctx = get_coef_context(nb, token_cache, c);