Bugs in control.cpp

"Jonas Lundberg" <[email protected]> Thu, 24 Apr 2008 13:26:40 +0200
Newsgroups gmane.comp.gnu.ccrtp.devel
Message-ID <026F8EEDAD2C4342A993203088C1FC05027F4B06@esealmw109.eemea.ericsson.se>
Hi ccRTP developers,

I've found some bugs in the control.cpp file which I would like to share
with you

- In QueueRTCPManager::setPRIVPrefix use "delete [] buf" when
deallocating memory

- The timercmp macro doesn't seem to work on Windows for '>=' or '<=',
(at least not on W2k). 

- In QueueRTCPManager::packSDES pkt->fh.length is calculated as
htons((len - prevlen - 1) >>2), I think htons(((len - prevlen)>>2) - 1)
is correct

- In QueueRTCPManager::takeInControlPacket()  onGotAPP is called like
this: onGotAPP(*s,pkt->info.APP,pkt->getLength()); It would be more
consistent if the length was specified without the first four bytes
included. This is how it works for SR and RR. I.e. use
onGotAPP(*s,pkt->info.APP,pkt->getLength()-4); instead.

BR Jonas

_______________________________________________
Ccrtp-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/ccrtp-devel