summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Soffke <christian.soffke@gmail.com>2021-03-20 19:13:08 +0100
committerWilliam Wilgus <me.theuser@yahoo.com>2021-03-22 02:50:51 +0000
commita8846e30036c4d20897a61c501c842f23febe24d (patch)
tree73ee6bda1505bc41a5c422ba6742b04dca6351c6
parentd5676fcd90cc3278df173a71502dc04d74813883 (diff)
downloadrockbox-a8846e30036c4d20897a61c501c842f23febe24d.tar.gz
rockbox-a8846e30036c4d20897a61c501c842f23febe24d.zip
Increase id3v2 max item size on high mem targets
As per multiple user requests: https://forums.rockbox.org/index.php/topic,53319.msg The acceptable size for id3v2 fields currently maxes out at 240 bytes on targets with more than 2MB of memory. The comments field, especially for Podcasts, can sometimes contain significantly more characters than Rockbox allows. The limit for devices with more than 8MB of memory is increased to 500 bytes for individual fields, and to 1800 bytes for the buffer containing all fields. Change-Id: I4593372229158756f102f67bcc4a43e64f632d58
-rw-r--r--lib/rbcodec/metadata/metadata.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/rbcodec/metadata/metadata.h b/lib/rbcodec/metadata/metadata.h
index 768e62d3b0..50fd5bac86 100644
--- a/lib/rbcodec/metadata/metadata.h
+++ b/lib/rbcodec/metadata/metadata.h
@@ -176,7 +176,10 @@ struct afmt_entry
176/* database of labels and codecs. add formats per above enum */ 176/* database of labels and codecs. add formats per above enum */
177extern const struct afmt_entry audio_formats[AFMT_NUM_CODECS]; 177extern const struct afmt_entry audio_formats[AFMT_NUM_CODECS];
178 178
179#if MEMORYSIZE > 2 179#if MEMORYSIZE > 8
180#define ID3V2_BUF_SIZE 1800
181#define ID3V2_MAX_ITEM_SIZE 500
182#elif MEMORYSIZE > 2
180#define ID3V2_BUF_SIZE 900 183#define ID3V2_BUF_SIZE 900
181#define ID3V2_MAX_ITEM_SIZE 240 184#define ID3V2_MAX_ITEM_SIZE 240
182#else 185#else