47 std::size_t len = datalength;
51 uint8_t padcount = data[datalength - 1];
52 if ((padcount & 0x03) != 0)
54 if (((std::size_t) padcount) >= len)
56 len -= (std::size_t) padcount;
66 int ssrccount = (int) (hdr->
count);
76 while ((ssrccount > 0) && (len > 0))
96 std::size_t r = (chunkoffset & 0x03);
99 std::size_t addoffset = 4 - r;
104 chunkoffset += addoffset;
116 std::size_t itemlen = (std::size_t)(sdeshdr->
length);
121 chunkoffset += itemlen;
126 chunk += chunkoffset;
RTCPSDESPacket(uint8_t *data, std::size_t datalen)