ref: f70f5dbae2f038d17a2fba4a7b20593533959fb6
parent: 4e2cfb63de974939b72d990005b36d8c2fac8352
author: Hien Ho <hienho@google.com>
date: Tue Oct 1 12:36:56 EDT 2019
vp9/decoder/vp9_detokenize: fix int sanitizer warnings From unit test: VP9MultiThreaded/InvalidFileTest implicit conversion from type 'int' of value 83144 (32-bit, signed) to type 'tran_low_t' (aka 'short') changed the value to 17608 (16-bit, signed) BUG=webm:1615 BUG=webm:1648 Change-Id: I4170494c328596ace66432c8563c55f31745cf76
--- a/vp9/decoder/vp9_detokenize.c
+++ b/vp9/decoder/vp9_detokenize.c
@@ -243,9 +243,9 @@
#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;