| Index: webrtc/media/base/rtputils.cc
|
| diff --git a/webrtc/media/base/rtputils.cc b/webrtc/media/base/rtputils.cc
|
| index ada2b59adda61af786b0dab0359cb1393f394cef..1f81d621c4c4ef93165403cadf2700d737f4bb9c 100644
|
| --- a/webrtc/media/base/rtputils.cc
|
| +++ b/webrtc/media/base/rtputils.cc
|
| @@ -279,6 +279,15 @@ bool IsValidRtpPayloadType(int payload_type) {
|
| return payload_type >= 0 && payload_type <= 127;
|
| }
|
|
|
| +bool IsValidRtpRtcpPacketSize(bool rtcp, size_t size) {
|
| + return (rtcp ? size >= kMinRtcpPacketLen : size >= kMinRtpPacketLen) &&
|
| + size <= kMaxRtpPacketLen;
|
| +}
|
| +
|
| +const char* RtpRtcpStringLiteral(bool rtcp) {
|
| + return rtcp ? "RTCP" : "RTP";
|
| +}
|
| +
|
| bool ValidateRtpHeader(const uint8_t* rtp,
|
| size_t length,
|
| size_t* header_length) {
|
|
|