Home | History | Annotate | Download | only in p2p

Lines Matching refs:rtp

59 // Verifies rtp header and message length.
60 bool ValidateRtpHeader(const char* rtp, int length, size_t* header_length) {
64 int cc_count = rtp[0] & 0x0F;
72 if (!(rtp[0] & 0x10)) {
79 rtp += rtp_hdr_len_without_extn;
83 uint16 extn_length = talk_base::GetBE16(rtp + 2) * 4;
97 // Absolute send time in RTP streams.
100 // general mechanism for RTP header extensions [RFC5285]. The payload
130 // the RTP packet.
131 void UpdateRtpAuthTag(char* rtp, int len,
138 char* auth_tag = rtp + (len - tag_length);
156 // Copy ROC after end of rtp packet.
158 // Authentication of a RTP packet will have RTP packet + ROC size.
162 if (!hmac.Sign(base::StringPiece(rtp, auth_required_length),
193 // If there is a srtp auth key present then packet must be a RTP packet.
194 // RTP packet may have been wrapped in a TURN Channel Data or
205 // Skip to rtp packet.
208 // then we should parse the rtp packet to update the timestamp. Otherwise
311 // This is a raw RTP packet.
316 // Making sure we have a valid RTP packet at the end.
328 // a sane rtp packet.
329 bool UpdateRtpAbsSendTimeExtn(char* rtp, int length,
345 if (!(rtp[0] & 0x10)) {
349 int cc_count = rtp[0] & 0x0F;
352 rtp += rtp_hdr_len_without_extn;
355 uint16 profile_id = talk_base::GetBE16(rtp);
357 uint16 extn_length = talk_base::GetBE16(rtp + 2) * 4;
359 rtp += kRtpExtnHdrLen; // Moving past extn header.
382 char* extn_start = rtp;
383 while (rtp - extn_start < extn_length) {
384 const int id = (*rtp & 0xF0) >> 4;
385 const int len = (*rtp & 0x0F) + 1;
389 UpdateAbsSendTimeExtnValue(rtp + kOneByteHdrLen, len, abs_send_time);
393 rtp += kOneByteHdrLen + len;
395 while ((*rtp == 0) && (rtp - extn_start < extn_length)) {
396 ++rtp;