Skip to content
Snippets Groups Projects
Commit a9ae8f11 authored by Andrea Zoli's avatar Andrea Zoli Committed by Camera Server Generic User
Browse files

Fix getBSTail() bug (related to ByteStreamPtr).

parent df048cb3
Branches
Tags
No related merge requests found
......@@ -1108,8 +1108,8 @@ ByteStreamPtr Packet::compressData(enum CompressionAlgorithms compressionAlgorit
ByteStreamPtr Packet::getBSTail() {
//dword dimvariablepart = packet->size() - dimPrefix - dimPacketStartingFixedPart - dimPacketTail;
ByteStreamPtr tail = 0;
if(dimPacketTail > 0)
if(dimPacketTail <= 0)
return 0;
ByteStreamPtr tail = ByteStreamPtr(new ByteStream(packet->stream + packet->size() - dimPacketTail, dimPacketTail, bigendian));
return tail;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment