[rtcp] Tmmbn/Tmmbr Parse updated not to use RTCPUtility

BUG=webrtc:5260

Review-Url: https://codereview.webrtc.org/2010723002
Cr-Commit-Position: refs/heads/master@{#12916}
This commit is contained in:
danilchap
2016-05-26 05:29:14 -07:00
committed by Commit bot
parent caab91a47b
commit 6ce1adc90b
8 changed files with 45 additions and 61 deletions

View File

@ -22,10 +22,10 @@ namespace rtcp {
// RFC4585, Section 6.2
class Rtpfb : public RtcpPacket {
public:
static const uint8_t kPacketType = 205;
static constexpr uint8_t kPacketType = 205;
Rtpfb() : sender_ssrc_(0), media_ssrc_(0) {}
virtual ~Rtpfb() {}
~Rtpfb() override {}
void From(uint32_t ssrc) { sender_ssrc_ = ssrc; }
void To(uint32_t ssrc) { media_ssrc_ = ssrc; }
@ -34,7 +34,7 @@ class Rtpfb : public RtcpPacket {
uint32_t media_ssrc() const { return media_ssrc_; }
protected:
static const size_t kCommonFeedbackLength = 8;
static constexpr size_t kCommonFeedbackLength = 8;
void ParseCommonFeedback(const uint8_t* payload);
void CreateCommonFeedback(uint8_t* payload) const;