diff options
author | Roman Artiukhin <bahusdrive@gmail.com> | 2024-03-25 09:27:20 +0200 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2024-03-28 08:25:02 -0400 |
commit | 19f21a2b3f75b38d313a3d9a1f87a537211c0204 (patch) | |
tree | b7b50021918b3e34c95dad20c63a46a8548d7209 | |
parent | 6e058fe77f48dc66a032de0a1e1cf495f85fe98f (diff) | |
download | rockbox-19f21a2b3f75b38d313a3d9a1f87a537211c0204.tar.gz rockbox-19f21a2b3f75b38d313a3d9a1f87a537211c0204.zip |
Codecs: mp4: Enable FAAD_STATIC_ALLOC
Allocates several SBR + PS arrays and variables statically
Prevents out of memory exceptions for long audiobooks
Note from original commit a602f46d why it was disabled:
For now malloc is not fully removed but used by a few arrays needed for AAC-HE SBR+PS only. Reason to keep malloc is to have this amount of memory available for AAC-LC files which might require large m4a tables.
But now with "shrinkable" seek table 2c6dfd06 it's no longer a critical issue for aac-lc files (we just load less seek entries) but might be critical for aac-he files.
Fixes issue described here https://www.rockbox.org/tracker/task/13049#comment44587
Change-Id: Id9c20bad4c46034299a2a4de95d41c807b3af412
-rw-r--r-- | lib/rbcodec/codecs/libfaad/common.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rbcodec/codecs/libfaad/common.h b/lib/rbcodec/codecs/libfaad/common.h index 938f64e14c..3b45f46ff0 100644 --- a/lib/rbcodec/codecs/libfaad/common.h +++ b/lib/rbcodec/codecs/libfaad/common.h | |||
@@ -66,7 +66,7 @@ extern "C" { | |||
66 | #endif | 66 | #endif |
67 | 67 | ||
68 | /* Used to allocate several SBR + PS arrays and variables statically. */ | 68 | /* Used to allocate several SBR + PS arrays and variables statically. */ |
69 | //#define FAAD_STATIC_ALLOC | 69 | #define FAAD_STATIC_ALLOC |
70 | 70 | ||
71 | #define INLINE __inline | 71 | #define INLINE __inline |
72 | #if 0 //defined(_WIN32) && !defined(_WIN32_WCE) | 72 | #if 0 //defined(_WIN32) && !defined(_WIN32_WCE) |