Fix for addition overflow in voronoi_idx_dec
Added saturation check in ixheaacd_avq_dec.c file. Bug:126154841 Test: poc Change-Id: I8fe1e1b194bdde2854bb3b41c2b8b9bf00afc125
This commit is contained in:
parent
68e7ffa52a
commit
d02fcccd4b
1 changed files with 1 additions and 1 deletions
|
|
@ -157,7 +157,7 @@ VOID ixheaacd_voronoi_idx_dec(WORD32 *kv, WORD32 m, WORD32 *y, WORD32 count) {
|
|||
for (i = 6; i >= 1; i--) {
|
||||
tmp = ixheaacd_shl32_sat(kv[i], 1);
|
||||
sum = ixheaacd_add32_sat(sum, tmp);
|
||||
y[i] += tmp;
|
||||
y[i] = ixheaacd_add32_sat(y[i], tmp);
|
||||
z[i] = y[i] >> count;
|
||||
rem1[i] = y[i] & (m - 1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue