Removing private and unused method in RTPReceiver.
R=pbos@webrtc.org Review URL: https://webrtc-codereview.appspot.com/42269004 Cr-Commit-Position: refs/heads/master@{#8650} git-svn-id: http://webrtc.googlecode.com/svn/trunk@8650 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
6b56d0793e
commit
1b32bbe0a7
@ -115,37 +115,4 @@ int32_t RTPReceiverVideo::InvokeOnInitializeDecoder(
|
||||
return 0;
|
||||
}
|
||||
|
||||
int32_t RTPReceiverVideo::BuildRTPheader(const WebRtcRTPHeader* rtp_header,
|
||||
uint8_t* data_buffer) const {
|
||||
data_buffer[0] = static_cast<uint8_t>(0x80); // version 2
|
||||
data_buffer[1] = static_cast<uint8_t>(rtp_header->header.payloadType);
|
||||
if (rtp_header->header.markerBit) {
|
||||
data_buffer[1] |= kRtpMarkerBitMask; // MarkerBit is 1
|
||||
}
|
||||
RtpUtility::AssignUWord16ToBuffer(data_buffer + 2,
|
||||
rtp_header->header.sequenceNumber);
|
||||
RtpUtility::AssignUWord32ToBuffer(data_buffer + 4,
|
||||
rtp_header->header.timestamp);
|
||||
RtpUtility::AssignUWord32ToBuffer(data_buffer + 8, rtp_header->header.ssrc);
|
||||
|
||||
int32_t rtp_header_length = 12;
|
||||
|
||||
// Add the CSRCs if any
|
||||
if (rtp_header->header.numCSRCs > 0) {
|
||||
if (rtp_header->header.numCSRCs > 16) {
|
||||
// error
|
||||
assert(false);
|
||||
}
|
||||
uint8_t* ptr = &data_buffer[rtp_header_length];
|
||||
for (uint32_t i = 0; i < rtp_header->header.numCSRCs; ++i) {
|
||||
RtpUtility::AssignUWord32ToBuffer(ptr, rtp_header->header.arrOfCSRCs[i]);
|
||||
ptr += 4;
|
||||
}
|
||||
data_buffer[0] = (data_buffer[0] & 0xf0) | rtp_header->header.numCSRCs;
|
||||
// Update length of header
|
||||
rtp_header_length += sizeof(uint32_t) * rtp_header->header.numCSRCs;
|
||||
}
|
||||
return rtp_header_length;
|
||||
}
|
||||
|
||||
} // namespace webrtc
|
||||
|
@ -55,10 +55,6 @@ class RTPReceiverVideo : public RTPReceiverStrategy {
|
||||
const PayloadUnion& specific_payload) const override;
|
||||
|
||||
void SetPacketOverHead(uint16_t packet_over_head);
|
||||
|
||||
private:
|
||||
int32_t BuildRTPheader(const WebRtcRTPHeader* rtp_header,
|
||||
uint8_t* data_buffer) const;
|
||||
};
|
||||
} // namespace webrtc
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user