From 0763719f2776f91114bc5564919896f28e078c77 Mon Sep 17 00:00:00 2001 From: Justin Maggard Date: Mon, 9 Dec 2019 21:34:44 -0800 Subject: [PATCH] tagutils: Fix spurious warnings with ogg coverart Silences common "Vorbis coverart too long" / "Vorbis METADATA_BLOCK_PICTURE too long" warning messages. --- tagutils/tagutils-misc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tagutils/tagutils-misc.c b/tagutils/tagutils-misc.c index 9f9436b..0075bab 100644 --- a/tagutils/tagutils-misc.c +++ b/tagutils/tagutils-misc.c @@ -188,7 +188,9 @@ vc_scan(struct song_metadata *psong, const char *comment, const size_t length) if(length > (sizeof(strbuf) - 1)) { - if( strncasecmp(comment, "LYRICS=", 7) != 0 ) + if( strncasecmp(comment, "LYRICS=", 7) != 0 && + strncasecmp(comment, "coverart=", 9) != 0 && + strncasecmp(comment, "METADATA_BLOCK_PICTURE=", 23) != 0 ) { const char *eq = strchr(comment, '='); int len = 8;