mirror of
https://github.com/taglib/taglib.git
synced 2025-05-27 21:20:26 -04:00
Revert switch to other static size method
This was based on a misread of the header: at present there is no non-static size() method, so removing the argument makes the behavior incorrect.
This commit is contained in:
parent
4668cf0f93
commit
0b99cd9bac
@ -169,7 +169,7 @@ Frame *FrameFactory::createFrame(const ByteVector &origData, const Header *tagHe
|
||||
if(version > 3 && (tagHeader->unsynchronisation() || header->unsynchronisation())) {
|
||||
// Data lengths are not part of the encoded data, but since they are synch-safe
|
||||
// integers they will be never actually encoded.
|
||||
ByteVector frameData = data.mid(header->size(), header->frameSize());
|
||||
ByteVector frameData = data.mid(Frame::Header::size(version), header->frameSize());
|
||||
frameData = SynchData::decode(frameData);
|
||||
data = data.mid(0, Frame::Header::size(version)) + frameData;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user