Allow SYLT frames to have a timestamp with no text.

Thanks to lemonboy999.
This commit is contained in:
Tsuda Kageyu 2017-02-24 15:40:30 +09:00
parent 45ee18e206
commit 9419dab51b

View File

@ -1,4 +1,4 @@
/***************************************************************************
/***************************************************************************
copyright : (C) 2014 by Urs Fleisch
email : ufleisch@users.sourceforge.net
***************************************************************************/
@ -189,7 +189,7 @@ void SynchronizedLyricsFrame::parseFields(const ByteVector &data)
}
}
String text = readStringField(data, enc, &pos);
if(text.isEmpty() || pos + 4 > end)
if(pos + 4 > end)
return;
unsigned int time = data.toUInt(pos, true);