aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-11-15 18:44:53 +0100
committerMax Kellermann <max@duempel.org>2009-11-15 18:44:53 +0100
commitf51ba6464adf1d2324c418e106b66da525f01587 (patch)
treef171f390d6aa56637ba14f303916328a564840ef
parent77b95d08a55a35bc966b9a9096cd926c315d49b8 (diff)
downloadmpd-f51ba6464adf1d2324c418e106b66da525f01587.tar.gz
mpd-f51ba6464adf1d2324c418e106b66da525f01587.tar.xz
mpd-f51ba6464adf1d2324c418e106b66da525f01587.zip
id3: allow 4 MB RIFF/AIFF tags
Allow RIFF/AIFF ID3 tags up to 4 MB (old limit was 256 kB). This might still be too small for some users, and when somebody complains, we might do something more clever (like streaming the data into libid3tag?).
Diffstat (limited to '')
-rw-r--r--NEWS2
-rw-r--r--src/tag_id3.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index a037115b7..8bd2369d2 100644
--- a/NEWS
+++ b/NEWS
@@ -4,6 +4,8 @@ ver 0.15.6 (2009/??/??)
- input/mms: require libmms 0.4
* archive:
- zzip: require libzzip 0.13
+* tags:
+ - id3: allow 4 MB RIFF/AIFF tags
* decoders:
- ffmpeg: convert metadata
- ffmpeg: align the output buffer
diff --git a/src/tag_id3.c b/src/tag_id3.c
index ce0386a51..0ae37f3ec 100644
--- a/src/tag_id3.c
+++ b/src/tag_id3.c
@@ -481,7 +481,7 @@ tag_id3_riff_aiff_load(FILE *file)
if (size == 0)
return NULL;
- if (size > 256 * 1024)
+ if (size > 4 * 1024 * 1024)
/* too large, don't allocate so much memory */
return NULL;