Fix for global buffer overflow in scale factor processing

Number of envelopes is equal to 2^n, where n obtained by
reading 2 bits from bit stream,so maximum value for number
of envelopes is 8. Time slot array table is accessed using
number of envelopes. The Minimum and Maximum values are 0
and 6,based on these values the table is modified.

Bug:112765917
Test: re-run poc
Change-Id: I42a44fc2376536d5119a8290a14726c9c5badd19
(cherry picked from commit 61a09f1063237a23127874bf27d5a72f1d03d3fe)
2 files changed
tree: cd2565e63827af5b02585401531cb3bc63c913ef
  1. decoder/
  2. test/
  3. Android.bp
  4. LICENSE
  5. MODULE_LICENSE_APACHE2
  6. NOTICE
  7. OWNERS