Added extra byte intolength calculation to avoid infinite loop
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@2698 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
parent
4a57d09d64
commit
37516f9c95
|
@ -121,7 +121,7 @@ int RtpCtrlThread::recvPacket( const unsigned char *packet, ssize_t packetLen )
|
|||
return( -1 );
|
||||
}
|
||||
}
|
||||
int paddedLen = 4+2+item->len;
|
||||
int paddedLen = 4+2+item->len+1; // Add null byte
|
||||
paddedLen = (((paddedLen-1)/4)+1)*4;
|
||||
Debug( 5, "RTCP PL:%d", paddedLen );
|
||||
sdesPtr += paddedLen;
|
||||
|
|
Loading…
Reference in New Issue