Fix for out of bound write memory access in xheaac

The maximum number of channels supported for usac profile in
libxaac decoder is two only.Input streams of the below reported
issues contain multi channel,because of multi channel the write
offset is incremented by greater 2, which causes out of bound
memory access while writing.

Bug:112858010
Bug:112859113
Test: re-run POC
Change-Id: Ide57cb8ee39d77d0f386298e899683d460a3c18b
(cherry picked from commit 2491a0748426913802d1240d907cb77c9ccb0091)
2 files changed
tree: 8f7f4d2a6dbaa66598c20f042ec53d773d09a48a
  1. decoder/
  2. test/
  3. Android.bp
  4. LICENSE
  5. MODULE_LICENSE_APACHE2
  6. NOTICE
  7. OWNERS