| Index: webrtc/modules/rtp_rtcp/source/rtcp_packet.h
|
| diff --git a/webrtc/modules/rtp_rtcp/source/rtcp_packet.h b/webrtc/modules/rtp_rtcp/source/rtcp_packet.h
|
| index 2956bc7beabe5c4fbb14fdb345ea77c5bd456544..5c65875f08994597bfb7c461e5dac5888b520e94 100644
|
| --- a/webrtc/modules/rtp_rtcp/source/rtcp_packet.h
|
| +++ b/webrtc/modules/rtp_rtcp/source/rtcp_packet.h
|
| @@ -420,56 +420,6 @@ class Sdes : public RtcpPacket {
|
| RTC_DISALLOW_COPY_AND_ASSIGN(Sdes);
|
| };
|
|
|
| -//
|
| -// Bye packet (BYE) (RFC 3550).
|
| -//
|
| -// 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
|
| -// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
| -// |V=2|P| SC | PT=BYE=203 | length |
|
| -// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
| -// | SSRC/CSRC |
|
| -// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
| -// : ... :
|
| -// +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
|
| -// (opt) | length | reason for leaving ...
|
| -// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
| -
|
| -class Bye : public RtcpPacket {
|
| - public:
|
| - Bye() : RtcpPacket() {
|
| - memset(&bye_, 0, sizeof(bye_));
|
| - }
|
| -
|
| - virtual ~Bye() {}
|
| -
|
| - void From(uint32_t ssrc) {
|
| - bye_.SenderSSRC = ssrc;
|
| - }
|
| -
|
| - bool WithCsrc(uint32_t csrc);
|
| -
|
| - // TODO(sprang): Add support for reason field?
|
| -
|
| - protected:
|
| - bool Create(uint8_t* packet,
|
| - size_t* index,
|
| - size_t max_length,
|
| - RtcpPacket::PacketReadyCallback* callback) const override;
|
| -
|
| - private:
|
| - static const int kMaxNumberOfCsrcs = 0x1f - 1; // First item is sender SSRC.
|
| -
|
| - size_t BlockLength() const {
|
| - size_t source_count = 1 + csrcs_.size();
|
| - return kHeaderLength + 4 * source_count;
|
| - }
|
| -
|
| - RTCPUtility::RTCPPacketBYE bye_;
|
| - std::vector<uint32_t> csrcs_;
|
| -
|
| - RTC_DISALLOW_COPY_AND_ASSIGN(Bye);
|
| -};
|
| -
|
| // Application-Defined packet (APP) (RFC 3550).
|
| //
|
| // 0 1 2 3
|
|
|