aboutsummaryrefslogtreecommitdiffstats
path: root/libFDK
Commit message (Collapse)AuthorAgeFilesLines
* Merge fdk-aac 'v2.0.3' into dabplus2dabplus2Matthias P. Braendli2024-01-058-74/+76
|\
| * Add build support for s390xRomain Beauxis2023-12-051-0/+8
| |
| * Merge remote-tracking branch 'aosp/main'Martin Storsjo2023-10-061-2/+4
| |\
| | * Add riscv64 supporthaocheng.zy2022-08-011-0/+7
| | | | | | | | | | | | | | | | | | | | | Signed-off-by: Zhang Ye <haocheng.zy@linux.alibaba.com> Signed-off-by: Mao Han <han_mao@linux.alibaba.com> Change-Id: Ifc1c8801d885b0b4ac1bf91842830ab650780328
| * | Merge remote-tracking branch 'aosp/master'Martin Storsjo2022-01-105-69/+61
| |\|
| | * Merge "Use dynamic scaling depending on autocorr length to avoid signed ↵Jean-Michel Trivi2021-04-301-22/+21
| | |\ | | | | | | | | | | | | integer overflow." into sc-dev
| | | * Use dynamic scaling depending on autocorr length to avoid signed integer ↵Fraunhofer IIS FDK2021-04-291-22/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | overflow. Bug: 186706541 Test: atest android.media.cts.DecoderTestAacFormat android.media.cts.DecoderTestXheAac android.media.cts.DecoderTestAacDrc Change-Id: Ibc035ce2eafe4b0d98377d090adad77bbf5cbb5c
| | * | Prevent undefined values for CODING_SCHEME type in huff_decode().Fraunhofer IIS FDK2021-04-302-19/+14
| | |/ | | | | | | | | | | | | | | | Bug: 186706541 Test: atest android.media.cts.DecoderTestAacFormat android.media.cts.DecoderTestXheAac android.media.cts.DecoderTestAacDrc Change-Id: I82da4a5660289d1c96888d48c315f96a4a5c1c2a
| | * Avoid integer overflow in dct_II().Fraunhofer IIS FDK2020-12-231-15/+13
| | | | | | | | | | | | | | | | | | Bug: 176246647 Test: atest DecoderTestXheAac DecoderTestAacDrc Change-Id: I6c30c4dec3f85410c2748eb42d38f5eb72521ec5
| | * Prevent integer overflows in dualChannelFiltering() and eightChannelFiltering().Fraunhofer IIS FDK2020-12-231-13/+13
| | | | | | | | | | | | | | | | | | Bug: 176246647 Test: atest DecoderTestXheAac DecoderTestAacDrc Change-Id: Ic9217bbb3980807036ae6ae121e6ddb7cc1bce35
| * | Do not force inlining of indirect functionsDavid Seifert2021-07-102-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | * A function called indirectly cannot be decorated with `__attribute((always_inline))`, as this is guaranteed to only work with direct calls: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63220#c1 Bug: https://bugs.gentoo.org/798045
* | | Merge v2.0.2 into dabplus2Matthias P. Braendli2021-06-0122-566/+497
|\| |
| * | Don't use enums for values read directly from the bitstreamMartin Storsjo2021-04-231-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The enums don't cover all possible values read from the bitstream. This fixes undefined behaviour sanitizer errors. Fixes: 31011/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_LIBFDK_AAC_fuzzer-4981228811976704 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
| * | fix compilation with mips16Rosen Penev2021-01-145-5/+5
| | | | | | | | | | | | | | | | | | | | | Some users wrongly pass both -mips16 and -mdsp when compiling on MIPS platforms. Handle such a case. Signed-off-by: Rosen Penev <rosenp@gmail.com>
| * | Revert "Avoid undefined shifts in SATURATE_SHIFT"Martin Storsjo2020-11-171-13/+2
| | | | | | | | | | | | | | | | | | | | | This reverts commit 3a831a5fbc990c83e9b5b804a082bb158364e793. This local fix doesn't seem to be needed any more after the latest upstream update.
| * | Merge remote-tracking branch 'aosp/master'Martin Storsjo2020-11-1716-543/+485
| |\|
| | * Merge changes Iad37ae76,I4870251b,Icd937cad am: 662d974400 am: 0b8c6e731fKris Alder2020-04-091-1/+1
| | |\ | | | | | | | | | | | | Change-Id: Ie5c84f6923184c564793de5e5f0007bc197415e7
| | | * Stop using __DATE__/__TIME__ on all buildsAnuj Joshi2020-03-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Test: mmma external/libaac Bug: 151595970 Change-Id: Icd937cad3e4e2f70a5486cca424544eb410be26f
| | * | Avoid decoder internal clipping by converting the whole audio sample data ↵Fraunhofer IIS FDK2020-02-144-21/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | path from 16 to 32 bit data width (FDKdec v3.2.0). Bug: 149514474 Test: atest DecoderTestXheAac DecoderTestAacDrc Change-Id: I8a504ab709e42e27a61fe29840212953742283a5
| | * | Revise memory overlay usage and remove deprecated buffers and overlay tags.Fraunhofer IIS FDK2020-02-142-11/+6
| | | | | | | | | | | | | | | | | | | | | | | | Bug: 149514474 Test: atest DecoderTestXheAac DecoderTestAacDrc Change-Id: I7aea2898a3c49e06209fae89d734939c100e1184
| | * | Restructure QMF implementation and provide 16/32 bit implementation in parallel.Fraunhofer IIS FDK2020-02-145-373/+318
| | | | | | | | | | | | | | | | | | | | | | | | Bug: 149514474 Test: atest DecoderTestXheAac DecoderTestAacDrc Change-Id: I2c6b332a0b5c4966a3f680d7a4d562d9bf18752c
| | * | Avoid undefined shift exponent in f2Pow().Fraunhofer IIS FDK2020-01-222-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | Bug: 146938418 Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: Id28608e049244968158900848c23bf7a8298083d
| | * | 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
| | * | 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
| | * | 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
| | * | Fix signed integer overflow in DuckerCalcEnergy().Fraunhofer IIS FDK2019-12-271-56/+24
| | | | | | | | | | | | | | | | | | | | | | | | Bug: 145668917 Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: I9f6458860901fa354a534e8fabe20dfa1a0cf7a9
| | * | 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
| | * | Fix integer overflow in imlt_block().Fraunhofer IIS FDK2019-10-181-3/+3
| | |/ | | | | | | | | | | | | | | | Bug: 131430997 Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: Ia7e03bbf6daef61079514de407a5900f6dc22a21
* | | Merge remote-tracking branch 'mstorjo/master' into dabplus2Matthias P. Braendli2020-09-151-4/+15
|\| |
| * | Avoid undefined shifts in SATURATE_SHIFTMartin Storsjo2020-09-021-2/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make sure that the shift amount is less than the size of the shifted value, otherwise return the saturation max values (for left shift, if the source values was nonzero) or zero (for right shift, or zero shifted left). Fixes: 24376/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_LIBFDK_AAC_fuzzer-6529411206348800 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
| * | Merge remote-tracking branch 'aosp/master'Martin Storsjo2019-10-081-2/+2
| |\|
| | * Fix out of sync function declaration of scaleValues().Fraunhofer IIS FDK2019-05-141-2/+2
| | | | | | | | | | | | | | | | | | | | | Bug: 132641988 Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: I1b9a204c52aee20adabc1baee7f5e5cdbf1ee39e
* | | Merge remote-tracking branch 'mstorjo/master' into dabplus2Matthias P. Braendli2019-03-049-724/+54
|\| |
| * | Merge remote-tracking branch 'aosp/master'Martin Storsjo2019-01-218-716/+44
| |\|
| | * Add sanity check in huff_decode()Fraunhofer IIS FDK2019-01-021-0/+8
| | | | | | | | | | | | | | | | | | Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: I33e99629665df9aa6262c90dd7ebdde4b4b9d773
| | * Free whole QMF domain in case of an error in FDK_QmfDomain_Configure()Fraunhofer IIS FDK2018-12-281-3/+2
| | | | | | | | | | | | | | | | | | Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: I974006c1815d68baae042ad71625ffe4c7bb39ff
| | * QMF configuration flag QMF_FLAG_MPSLDFB has always priority over QMF_FLAG_CLDFBFraunhofer IIS FDK2018-12-281-4/+4
| | | | | | | | | | | | | | | | | | Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: I7c851b9db88c6250b5ad30282b8b19ea306e4e12
| | * Add missing parameter initialization in FDK_QmfDomain_Clear*() functionsFraunhofer IIS FDK2018-12-281-0/+2
| | | | | | | | | | | | | | | | | | Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: Id5bd382ca256488c837b63eaf519b93e01abe02d
| | * Fix SATURATE_LEFT_SHIFT_ALT() since it returned 0x80000000 in certain casesFraunhofer IIS FDK2018-12-261-5/+5
| | | | | | | | | | | | | | | | | | Bug: 112661911 Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: I16e522c975ad45ff8d47d4cabe44f1f2bf95b73b
| | * UBSAN overflow in FFTFraunhofer IIS FDK2018-12-262-623/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | An overflow in the fft was observed for certain configurations. The root cause was in the scaling of the fft input data in dct_IV and dst_IV. The following patch revises the scaling in dct and removes the unused arm implementation. Bug: 112661057 Bug: 109936783 Bug: 112022208 Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: Idc9c44a9755b8151d5c7d8107696f43ac592413b
| | * DO NOT MERGE - Merge pie-platform-release (PPRL.181205.001) into masterXin Li2018-12-113-81/+0
| | |\ | | | | | | | | | | | | | | | | Bug: 120502534 Change-Id: Ie44ac2dc553c40a8a9bd9b42b00a0b01cfa9799a
| | | * Prevent bit buffer counter overflow.Fraunhofer IIS FDK2018-09-103-81/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While long-term test we discovered a bit counter overflow in the bit buffer. The bit buffer state was only used by HCR and RVLC tool and can easily be substituted with FDKgetValidBits() call. The following patch completely removes the bit counter and all its obsolete functions. Bug: 112662184 Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: Icee0519d26a2aa62367d2dece59cd3d60ffcade7 (cherry picked from commit 15292f7e9620caf9e8df26a62efc2a2891ea822e)
| * | | Merge remote-tracking branch 'aosp/master'Martin Storsjo2018-10-161-8/+10
| |\| |
| | * | Signed Integer Overflow in DuckerCalcEnergy()Fraunhofer IIS FDK2018-10-041-8/+10
| | |/ | | | | | | | | | | | | | | | | | | Bug: 112122038 Bug: 112891546 Test: see b/112122038 for repro stream Change-Id: I7542e2a9033c2e97bf32e0be3bbc6f48746d28f0
* | / Add DAB+ supportMatthias P. Braendli2018-09-123-1/+54
|/ /
* | Remove a duplicate definition of fMax/fMin for x86_64 mingwMartin Storsjo2018-09-031-4/+0
| | | | | | | | | | | | FIXP_SGL is a typedef for SHORT, so these extra definitions (which only were enabled on x86_64 mingw) were duplicates with the fMin/fMax functions defined for FIXP_SGL right above.