From abd4a24639cbcdd5ad6547d3a836239a9044c48f Mon Sep 17 00:00:00 2001 From: Justin Maggard Date: Sun, 5 Apr 2009 07:57:11 +0000 Subject: [PATCH] * Ignore Vorbis lyrics data. --- tagutils/tagutils-misc.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/tagutils/tagutils-misc.c b/tagutils/tagutils-misc.c index b29b2ac..d469268 100644 --- a/tagutils/tagutils-misc.c +++ b/tagutils/tagutils-misc.c @@ -174,11 +174,18 @@ _get_utf8_text(const id3_ucs4_t* native_text) static void vc_scan(struct song_metadata *psong, const char *comment, const size_t length) { - char strbuf[2048]; + char strbuf[1024]; if(length > (sizeof(strbuf) - 1)) { - DPRINTF(E_WARN, L_SCANNER, "Vorbis Comment too long [%s]\n", psong->path); + if(!strncasecmp(strbuf, "LYRICS=", 7)) + { + DPRINTF(E_DEBUG, L_SCANNER, "Ignoring embedded Vorbis lyrics [%s]\n", psong->path); + } + else + { + DPRINTF(E_WARN, L_SCANNER, "Vorbis %.*s too long [%s]\n", (index(comment, '=')-comment), comment, psong->path); + } return; } strncpy(strbuf, comment, length);