tagutils: Fix spurious warnings with ogg coverart

Silences common "Vorbis coverart too long" / "Vorbis
METADATA_BLOCK_PICTURE too long" warning messages.
This commit is contained in:
Justin Maggard 2019-12-09 21:34:44 -08:00
parent 8f14d7223d
commit 0763719f27

View File

@ -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;