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:
Scott Wheeler 2019-09-11 00:58:18 +02:00
parent 4668cf0f93
commit 0b99cd9bac

View File

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