Fix parsing of TXXX frame without description (#1069)

This commit is contained in:
Urs Fleisch
2022-11-12 11:36:22 +01:00
parent 8aa7dd81d8
commit bc5e56d3eb
2 changed files with 48 additions and 1 deletions

View File

@ -220,7 +220,7 @@ void TextIdentificationFrame::parseFields(const ByteVector &data)
unsigned short firstBom = 0;
for(ByteVectorList::ConstIterator it = l.begin(); it != l.end(); it++) {
if(!(*it).isEmpty()) {
if(!it->isEmpty() || (it == l.begin() && frameID() == "TXXX")) {
if(d->textEncoding == String::Latin1) {
d->fieldList.append(Tag::latin1StringHandler()->parse(*it));
}