diff options
author | Christian Soffke <christian.soffke@gmail.com> | 2024-04-10 20:51:34 +0200 |
---|---|---|
committer | Christian Soffke <christian.soffke@gmail.com> | 2024-04-13 16:19:48 +0200 |
commit | b06073f7716373b115b4e039193ce622dbccb3a5 (patch) | |
tree | 8f865f8f39d76472efacbc36e00190c6911addea /apps/recorder | |
parent | 05b070b0b89e04a0287d35fd68f192fe52c31abf (diff) | |
download | rockbox-b06073f7716373b115b4e039193ce622dbccb3a5.tar.gz rockbox-b06073f7716373b115b4e039193ce622dbccb3a5.zip |
buffering: ensure sufficient buffer size loading bitmaps
Commits 5aa0fc3 and 32f1418 (g#4451, g#4452) changed the
amount of space that was allocated for loading bitmaps
used to display album art.
Testing revealed that the size of the JPEG decode buffer
can reach up to (38 * 1024)B in some cases.
When the limit is reached, additional space is required
by the resize_on_load function.
Change-Id: If93b45754a4f5948b6160f659182e4618e01912e
Diffstat (limited to 'apps/recorder')
-rw-r--r-- | apps/recorder/jpeg_load.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/recorder/jpeg_load.c b/apps/recorder/jpeg_load.c index 34d543b56e..eccd781f9b 100644 --- a/apps/recorder/jpeg_load.c +++ b/apps/recorder/jpeg_load.c | |||
@@ -2231,7 +2231,7 @@ int read_jpeg_fd(int fd, | |||
2231 | const size_t JPEG_DECODE_OVERHEAD = | 2231 | const size_t JPEG_DECODE_OVERHEAD = |
2232 | /* Reserve an arbitrary amount for the decode buffer | 2232 | /* Reserve an arbitrary amount for the decode buffer |
2233 | * FIXME: Somebody who knows what they're doing should look at this */ | 2233 | * FIXME: Somebody who knows what they're doing should look at this */ |
2234 | (32 * 1024) | 2234 | (38 * 1024) |
2235 | #ifndef JPEG_FROM_MEM | 2235 | #ifndef JPEG_FROM_MEM |
2236 | /* Unless the struct jpeg is defined statically, we need to allocate | 2236 | /* Unless the struct jpeg is defined statically, we need to allocate |
2237 | * it in the bitmap buffer as well */ | 2237 | * it in the bitmap buffer as well */ |