"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/q922.cxx" between
h323plus-1_26_9.tar.gz and h323plus-1_27_0.tar.gz

About: H.323 Plus offers libraries for voice (VoIP) and videoconferencing using H.323.

q922.cxx  (h323plus-1_26_9):q922.cxx  (h323plus-1_27_0)
skipping to change at line 132 skipping to change at line 132
if(size < 2+3+2+1) if(size < 2+3+2+1)
return FALSE; return FALSE;
PINDEX octetIndex = 0; PINDEX octetIndex = 0;
BYTE bitIndex = 7; BYTE bitIndex = 7;
BYTE onesCounter = 0; BYTE onesCounter = 0;
if(!FindFlagEnd(data, size, octetIndex, bitIndex)) if(!FindFlagEnd(data, size, octetIndex, bitIndex))
return FALSE; return FALSE;
BYTE firstOctet; BYTE firstOctet = 0;
BYTE secondOctet; BYTE secondOctet = 0;
// read the two first octets // read the two first octets
if(octetIndex >= size || DecodeByte(data, &firstOctet, octetIndex, bitIndex, o nesCounter) != Q922_OK) if(octetIndex >= size || DecodeByte(data, &firstOctet, octetIndex, bitIndex, o nesCounter) != Q922_OK)
return FALSE; return FALSE;
if(octetIndex >= size || DecodeByte(data, &secondOctet, octetIndex, bitIndex, onesCounter) != Q922_OK) if(octetIndex >= size || DecodeByte(data, &secondOctet, octetIndex, bitIndex, onesCounter) != Q922_OK)
return FALSE; return FALSE;
PINDEX arrayIndex = 0; PINDEX arrayIndex = 0;
while(octetIndex < size) { while(octetIndex < size) {
BYTE decodedByte; BYTE decodedByte = 0;
BYTE result = DecodeByte(data, &decodedByte, octetIndex, bitIndex, onesCount er); BYTE result = DecodeByte(data, &decodedByte, octetIndex, bitIndex, onesCount er);
if(result == Q922_ERROR) { if(result == Q922_ERROR) {
return FALSE; return FALSE;
} else if(result == Q922_FLAG) { } else if(result == Q922_FLAG) {
// Found end flag // Found end flag
// FCS is contained in firstOctet and secondOctet. // FCS is contained in firstOctet and secondOctet.
WORD fcs = (secondOctet << 8) | firstOctet; WORD fcs = (secondOctet << 8) | firstOctet;
 End of changes. 2 change blocks. 
3 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)