diff options
author | Rajat Kumar <rajat.kumar@ittiam.com> | 2019-02-19 11:42:16 +0530 |
---|---|---|
committer | Ray Essick <essick@google.com> | 2019-03-19 09:15:22 -0700 |
commit | f931772f4a260ee9575518178334428d32434f06 (patch) | |
tree | 683fec3b29a17722bdc472a6f8e1f102c43a0f0c /decoder/ixheaacd_sbr_dec.c | |
parent | eaf820d8f7d3bac03ac44daa4533848050c196fe (diff) | |
download | libxaac-f931772f4a260ee9575518178334428d32434f06.tar.gz |
Fix for xaacdec running in infinite loop in hbe_repl_spec func.
When ixheaacd_num_bands = 0, "while (patch_bands > 0)" goes
into infinite looping since patch_bands remains unchanged in the
loop.
So as a fix added the corresponding check to break the loop when
ixheaacd_num_bands becomes 0.
Bug: 123974524
Test: poc
Change-Id: Ie6364ad0b3cfd92df1a2664ec5850408aecce21b
Diffstat (limited to 'decoder/ixheaacd_sbr_dec.c')
-rw-r--r-- | decoder/ixheaacd_sbr_dec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/decoder/ixheaacd_sbr_dec.c b/decoder/ixheaacd_sbr_dec.c index dc7019c..e58f2d4 100644 --- a/decoder/ixheaacd_sbr_dec.c +++ b/decoder/ixheaacd_sbr_dec.c @@ -158,6 +158,7 @@ VOID ixheaacd_hbe_repl_spec(WORD32 x_over_qmf[MAX_NUM_PATCHES], start_band--; } } + if (!ixheaacd_num_bands) break; for (col = 0; col < no_bins; col++) { WORD32 i = 0; band = target + ixheaacd_num_bands - 1; |