Commit 8398023a authored by Hui Su's avatar Hui Su
Browse files

Fix int overflow in decode_coefs()

BUG=b/69205191

Change-Id: I79e404dc2cd6db06e71a64338b74eb4b575ba431
(cherry picked from commit 85f2a5ae4c15de5dd530766eb3933b9de976d9cf)
parent 8e739bcd
...@@ -210,7 +210,7 @@ static int decode_coefs(MACROBLOCKD *xd, PLANE_TYPE type, tran_low_t *dqcoeff, ...@@ -210,7 +210,7 @@ static int decode_coefs(MACROBLOCKD *xd, PLANE_TYPE type, tran_low_t *dqcoeff,
AOM_QM_BITS; AOM_QM_BITS;
#endif #endif
#if !CONFIG_DAALA_TX #if !CONFIG_DAALA_TX
v = (val * dqv) >> dq_shift; v = (int)(((int64_t)val * dqv) >> dq_shift);
#else #else
v = val * dqv; v = val * dqv;
#endif #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