Revert "Fix the "Failed unprotect audio RTP packet" error when SCTP is bundled with audio."
This reverts commit 56631a14bdae24aa0bfaceeb2b57df729fee1227. TBR=henrike@webrtc.org BUG=3235 Review URL: https://webrtc-codereview.appspot.com/19669004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@6363 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@@ -223,15 +223,4 @@ bool SetRtpHeader(void* data, size_t len, const RtpHeader& header) {
|
||||
SetRtpSsrc(data, len, header.ssrc));
|
||||
}
|
||||
|
||||
bool IsRtpPacket(const void* data, size_t len) {
|
||||
if (len < kMinRtpPacketLen)
|
||||
return false;
|
||||
|
||||
int version = 0;
|
||||
if (!GetRtpVersion(data, len, &version))
|
||||
return false;
|
||||
|
||||
return version == kRtpVersion;
|
||||
}
|
||||
|
||||
} // namespace cricket
|
||||
|
||||
@@ -74,7 +74,6 @@ bool SetRtpSsrc(void* data, size_t len, uint32 value);
|
||||
// Assumes version 2, no padding, no extensions, no csrcs.
|
||||
bool SetRtpHeader(void* data, size_t len, const RtpHeader& header);
|
||||
|
||||
bool IsRtpPacket(const void* data, size_t len);
|
||||
} // namespace cricket
|
||||
|
||||
#endif // TALK_MEDIA_BASE_RTPUTILS_H_
|
||||
|
||||
Reference in New Issue
Block a user