aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Reject undefined fPow() input data in _compressorIO_sigmoid_common().Fraunhofer IIS FDK2020-01-221-1/+4
| | | | | | Bug: 146938418 Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: Iae4730ab5f5cef7c0ac8830831d25cfcaa567a99
* Avoid undefined shift exponent in f2Pow().Fraunhofer IIS FDK2020-01-222-2/+8
| | | | | | Bug: 146938418 Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: Id28608e049244968158900848c23bf7a8298083d
* Fix too large shift exponent in CConcealment_InterpolateBuffer().Fraunhofer IIS FDK2020-01-161-8/+3
| | | | | | Bug: 146938361 Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: Idb0a4e2c87962e453a991f0a573155ace6e9bf40
* Prevent too large shift exponents in SpatialDecReshapeBBEnv().Fraunhofer IIS FDK2020-01-161-9/+14
| | | | | | Bug: 146937858 Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: I9fbe0b364ae4d329c6e5cc1109a111ef5def552d
* Avoid too large shift exponent in apply_inter_tes() by using fIsLessThan.Fraunhofer IIS FDK2020-01-161-11/+2
| | | | | | Bug: 146936613 Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: I8414072929ec8f786e0c003f18ab453dbacb9e5e
* Fix IsLessThan() function for certain edge cases.Fraunhofer IIS FDK2020-01-161-0/+26
| | | | | | Bug: 146936613 Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: Idbec38c1df01bd7a6a48ac4b6e5673c30627fc73
* Avoid unsigned integer overflows in FDK_Feed().Fraunhofer IIS FDK2020-01-161-3/+6
| | | | | | Bug: 146937030 Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: I7bd63c2fbfed2612c80d3334d1339e1cd215e034
* Prevent undefined syncLayerFrameBits in synchronization().Fraunhofer IIS FDK2020-01-141-2/+6
| | | | | | Bug: 146937540 Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: Idaaa11d95c13220a9f96e6d73d4813492a740954
* Avoid unsigned integer overflow in transportDec_InBandConfig() and ↵Fraunhofer IIS FDK2020-01-141-2/+3
| | | | | | | | transportDec_ReadAccessUnit(). Bug: 146937857 Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: If2320f3a1ddf6a36c07338100481801a996e455d
* Prevent negation of INT_MIN in CConcealment_ApplyRandomSign().Fraunhofer IIS FDK2020-01-141-2/+2
| | | | | | Bug: 146937601 Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: I9747110eca96b37604df996ef5e86ea58e2d8932
* Revise scaling in extractBBEnv() to avoid potential signed integer overflows.Fraunhofer IIS FDK2020-01-141-106/+68
| | | | | | Bug: 146936823 Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: I268f4ed2778ffad6cbd90e1df627daf2eab97604
* Avoid signed integer overflow in combineSignalCplx*().Fraunhofer IIS FDK2020-01-141-31/+10
| | | | | | Bug: 146937324 Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: I3f5516085483ac349f9873e7267c6ff7f9c6f816
* Prevent signed integer overflow in TsdApply().Fraunhofer IIS FDK2020-01-141-11/+17
| | | | | | Bug: 146937678 Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: Ia7b58caf9eb86c19e3ae10b3cc624490b2a5f07b
* Revise scaling for USAC combined with phase coding in SpatialDecApplyM2() to ↵Fraunhofer IIS FDK2020-01-142-66/+84
| | | | | | | | prevent signed integer overflow. Bug: 146937759 Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: If7c484b2e1bee82747f5c6dc0ee7ad1f282c0189
* Avoid signed integer overflows in SpatialDecApplyParameterSets() when adding ↵Fraunhofer IIS FDK2020-01-141-7/+9
| | | | | | | | dry and wet signal. Bug: 146936964 Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: Idb4242d54b2e61805ab071a8977eed8f06081edf
* Introduce scaling in FDKhybridSynthesisApply() to avoid potential signed ↵Fraunhofer IIS FDK2020-01-141-16/+18
| | | | | | | | integer overflow. Bug: 146937225 Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: Ifa3d157a842828c2a66694d95dad5d4992ff6d87
* Prevent signed integer overflow in fMultIceil() for case m_e=-31.Fraunhofer IIS FDK2020-01-141-5/+10
| | | | | | Bug: 146934600 Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: I8a67a3b17f3ec3af753b6463b72ae2947986b39c
* Merge "Revert "Add TEST_MAPPING for aac project""Jean-Michel Trivi2020-01-031-22/+0
|\
| * Revert "Add TEST_MAPPING for aac project"Jean-Michel Trivi2020-01-031-22/+0
| | | | | | | | | | | | | | | | | | This reverts commit b10c18741e961015fbded7df2bbf0ec5f799de9e. Reason for revert: cf_x86_phone-userdebug breaks on those tests Bug: 147097191 Change-Id: I15eccdc2a8527f526882dc6e5df241f404cb163d
* | Merge "Add TEST_MAPPING for aac project"Jean-Michel Trivi2019-12-301-0/+22
|\|
| * Add TEST_MAPPING for aac projectJean-Michel Trivi2019-12-271-0/+22
| | | | | | | | | | | | | | | | | | | | | | Add a TEST_MAPPING file for this project so every change runs all the CTS decoding tests as presubmit. Alternatively this can be used as a convenient way to run all AAC tests in one command. Test: [from root] atest --test-mapping external/aac/ Test: [from external/aaac] atest Change-Id: Ic03753b57bb1d3b6a06ced1fd7f321bf8402e8cf
* | Fix for OPD smoothing in USAC decoder.Fraunhofer IIS FDK2019-12-271-0/+4
| | | | | | | | | | | | Bug: 145668878 Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: I075e3230d53c5a848f93541a9918c5bfaf2df725
* | Move array definition out of for loop in MPEG-D DRC _skipEqInstructions().Fraunhofer IIS FDK2019-12-271-1/+1
| | | | | | | | | | | | Bug: 145669488 Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: Icb71fb1cb8e0b64ae969276d08746f687a753467
* | Use saturate shift to prevent signed integer overflow in multiple ↵Fraunhofer IIS FDK2019-12-271-22/+23
| | | | | | | | | | | | | | | | qmfInverseModulation*() functions. Bug: 145669510 Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: I4cee10423bc14e3db26de877b5e70701ac3324da
* | For all scaleValuesSaturate() variants make source pointer const.Fraunhofer IIS FDK2019-12-272-18/+16
| | | | | | | | | | | | Bug: 145669510 Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: Ib69a4f12405026d3165193f0192eb25eaed7e797
* | Avoid negation of INT_MIN in dst_IV().Fraunhofer IIS FDK2019-12-271-9/+9
| | | | | | | | | | | | Bug: 145669114 Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: I6ddd7a39376c5276ec636572c3bfd4d83d05f9f5
* | Add sanity check for huffman escape sequences in HCR tool.Fraunhofer IIS FDK2019-12-271-1/+5
| | | | | | | | | | | | Bug: 145669389 Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: Iaa624f3040269b5c84883bc3ee38cad7cd88e54d
* | Prevent negation of INT_MIN in pcmLimiter_Apply().Fraunhofer IIS FDK2019-12-271-3/+3
| | | | | | | | | | | | Bug: 145668877 Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: I734f839818f7130615a4438b8831ac664206cc34
* | Adjust scaling in lppTransposerHBE() to prevent signed integer overflow in ↵Fraunhofer IIS FDK2019-12-271-4/+7
| | | | | | | | | | | | | | | | autocorrelation. Bug: 145669291 Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: Ia32b081b982d6886f51642a7ed1ca73acb40dac9
* | Fix signed integer overflow in DuckerCalcEnergy().Fraunhofer IIS FDK2019-12-271-56/+24
| | | | | | | | | | | | Bug: 145668917 Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: I9f6458860901fa354a534e8fabe20dfa1a0cf7a9
* | Avoid signed integer overflow in subbandTPApply() wet energy calculation.Fraunhofer IIS FDK2019-12-271-11/+34
| | | | | | | | | | | | Bug: 145668345 Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: I92cfb0412d11c8a41431294a2a7fe399dc756f44
* | Avoid signed integer overflow in subbandTPApply() dry energy calculation.Fraunhofer IIS FDK2019-12-271-20/+41
| | | | | | | | | | | | Bug: 145668819 Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: I4f61efa70e77ae64b99fe7cafbc2b43f5cc09b06
* | Fix dry and wet energy initialization in subbandTPInit().Fraunhofer IIS FDK2019-12-271-5/+3
| | | | | | | | | | | | Bug: 145668025 Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: Iadf5d4ebcecfa544b688a69d569ad515c0affade
* | Add loop abort criterion to prevent timeout in EldSpecificConfig_Parse().Fraunhofer IIS FDK2019-12-271-5/+7
| | | | | | | | | | | | Bug: 145668344 Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: Iea6457e8545438c7ad4d05a682ffa656ec35ead9
* | Prevent signed integer overflows in ELD filterbank, multE2_DinvF_fdk().Fraunhofer IIS FDK2019-12-271-7/+11
| | | | | | | | | | | | Bug: 145669388 Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: Iaba69b58666833c90e05b296c502ba6509a087a9
* | Avoid signed integer overflows in multiple adjustTimeSlot*() functions.Fraunhofer IIS FDK2019-12-271-25/+72
| | | | | | | | | | | | Bug: 145669628 Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: Id0f3ee9d3413e534505c0c7eea379ce42880ca79
* | Improve robustness of limiter band table calculation in ResetLimiterBands().Fraunhofer IIS FDK2019-12-271-0/+5
| | | | | | | | | | | | Bug: 145668973 Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: Ic076cf5b44c0618734064b670de61f9da532a13e
* | Fix signed integer overflow in pvcDecodeTimeSlot().Fraunhofer IIS FDK2019-12-271-12/+13
| | | | | | | | | | | | Bug: 145668022 Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: I0a165330cf174f24310f8d705523d310a3522e7a
* | Use one additional bit headroom to prevent signed integer overflow in ↵Fraunhofer IIS FDK2019-12-271-10/+13
|/ | | | | | | | BuildAdaptiveExcitation(). Bug: 145666984 Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: I5c881238562c3d9f7cd8d77a8c52f7231126587f
* [automerger skipped] DO NOT MERGE - ↵Xin Li2019-10-300-0/+0
|\ | | | | | | | | | | | | | | | | qt-qpr1-dev-plus-aosp-without-vendor@5915889 into stage-aosp-master am: 7ea2e46dc1 am: 13d520b193 -s ours am skip reason: subject contains skip directive Change-Id: Ic14cc4914dfb877a04b150b63f8cb1f10a9646c7
| * DO NOT MERGE - qt-qpr1-dev-plus-aosp-without-vendor@5915889 into ↵Xin Li2019-10-300-0/+0
| |\ | | | | | | | | | | | | | | | | | | | | | stage-aosp-master am: 7ea2e46dc1 Change-Id: I580bebbf6a96c5ef6dfbb8e691917c16207551bb
| | * DO NOT MERGE - qt-qpr1-dev-plus-aosp-without-vendor@5915889 into ↵Xin Li2019-10-300-0/+0
| | |\ | | |/ | |/| | | | | | | | | | | | | stage-aosp-master Bug: 142003500 Change-Id: I809fba949d51f01395793ccb36118e4f5c42e5be
* | | FDK: USAC CLpd_Reset uses rate constantsJean-Michel Trivi2019-10-211-1/+1
| | | | | | | | | | | | | | | | | | | | | Use constants defined in libAACdec/src/usacdec_const.h Test: atest DecoderTestXheAac Change-Id: Idf1aa9fefb92b1abf64f50b044b2490b0d31b426
* | | Initialize scale variable in qmfForwardModulationLP_even() and ↵Fraunhofer IIS FDK2019-10-181-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | qmfInverseModulationLP_even() which is updated in dct/fft processing. Bug: 131430997 Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: Id294afb1ac740abf6000d7286e0f95c8b13a7eb8
* | | Limit too large shift value in apply_inter_tes().Fraunhofer IIS FDK2019-10-181-1/+2
| | | | | | | | | | | | | | | | | | Bug: 131430997 Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: I38cc7053e671f6e20a1a9ba4f1645d1cf8be77e2
* | | Fix nrgGain_e update in equalizeFiltBufferExp(). Prevents negative shift ↵Fraunhofer IIS FDK2019-10-181-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | exponents in calculateSbrEnvelope(). Bug: 131430997 Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: I66ad54dae0fa1d414d8b2b9a9e0b6145cce4042d
* | | Prevent signed integer overflows in CLpd_FAC_Mdct2Acelp().Fraunhofer IIS FDK2019-10-181-3/+3
| | | | | | | | | | | | | | | | | | Bug: 131430997 Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: I348fe4be577ac39f961352902d138a8e07982096
* | | Fix integer overflow in imlt_block().Fraunhofer IIS FDK2019-10-181-3/+3
| | | | | | | | | | | | | | | | | | Bug: 131430997 Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: Ia7e03bbf6daef61079514de407a5900f6dc22a21
* | | Prevent signed integer overflows in CLpd_FAC_Acelp2Mdct().Fraunhofer IIS FDK2019-10-181-6/+4
| | | | | | | | | | | | | | | | | | Bug: 131430997 Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: I216f97b0c75a9076f3963036b098af37b390c5bb
* | | Fix integer overflow in complex multiplication called from ↵Fraunhofer IIS FDK2019-10-181-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | CLpd_FAC_Acelp2Mdct(). Bug: 131430997 Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: I7cd234698821cf13b163d323cfd90fdccaaec3c1