Chromium Code Reviews| Index: talk/media/base/rtputils.h |
| diff --git a/talk/media/base/rtputils.h b/talk/media/base/rtputils.h |
| index bf8238f30298266472d2ca8b8154dc991c4c56ce..0537ffcdb602391f8f1d62454fb09933306ea342 100644 |
| --- a/talk/media/base/rtputils.h |
| +++ b/talk/media/base/rtputils.h |
| @@ -30,6 +30,10 @@ |
| #include "webrtc/base/byteorder.h" |
| +namespace rtc { |
| +struct PacketTimeUpdateParams; |
| +} // namespace rtc |
| + |
| namespace cricket { |
| const size_t kMinRtpPacketLen = 12; |
| @@ -71,6 +75,25 @@ bool IsRtpPacket(const void* data, size_t len); |
| // True if |payload type| is 0-127. |
| bool IsValidRtpPayloadType(int payload_type); |
| +// Verifies that a packet has a valid RTP header. |
| +bool ValidateRtpHeader(const uint8_t* rtp, |
| + size_t length, |
| + size_t* header_length); |
| + |
| +// Helper method which updates absolute send time extension if present. |
|
pthatcher1
2016/01/14 19:34:02
updates absolute send time => updates the absolute
Sergey Ulanov
2016/01/14 20:13:10
Done.
|
| +bool UpdateRtpAbsSendTimeExtension(uint8_t* rtp, |
| + size_t length, |
| + int extension_id, |
| + uint64_t time_us); |
| + |
| +// Applies specified |options| to the packet. It updates absolute send time |
|
pthatcher1
2016/01/14 19:34:02
Same here
Sergey Ulanov
2016/01/14 20:13:10
Done.
|
| +// extension header if it is present present then updates HMAC. |
| +bool ApplyPacketOptions(uint8_t* data, |
| + size_t length, |
| + const rtc::PacketTimeUpdateParams& packet_time_params, |
| + uint64_t time_us); |
| + |
| + |
| } // namespace cricket |
| #endif // TALK_MEDIA_BASE_RTPUTILS_H_ |