d->textEncoding = String::Type(data[0]);
- int pos = 1;
+ int pos = 1, poss = 1;
d->mimeType = readStringField(data, String::Latin1, &pos);
/* Now we need at least two more bytes available */
}
d->type = (TagLib::ID3v2::AttachedPictureFrame::Type)data[pos++];
+
+ poss = pos;
d->description = readStringField(data, d->textEncoding, &pos);
- d->data = data.mid(pos);
+ d->data = data.mid(poss);
}
ByteVector AttachedPictureFrame::renderFields() const