Fix rtcp_sender to support sdes with 31 chunk

Previosly it supported up to only 15 chunks which is a limit for csrcs in an rtp packet.

BUG=None

Review-Url: https://codereview.webrtc.org/2758533002
Cr-Commit-Position: refs/heads/master@{#17274}
This commit is contained in:
danilchap
2017-03-16 08:04:08 -07:00
committed by Commit bot
parent 0937468cee
commit 74e8df8feb
4 changed files with 21 additions and 5 deletions

View File

@ -28,6 +28,7 @@ class Sdes : public RtcpPacket {
std::string cname;
};
static constexpr uint8_t kPacketType = 202;
static constexpr size_t kMaxNumberOfChunks = 0x1f;
Sdes();
~Sdes() override;
@ -48,8 +49,6 @@ class Sdes : public RtcpPacket {
RtcpPacket::PacketReadyCallback* callback) const override;
private:
static const size_t kMaxNumberOfChunks = 0x1f;
std::vector<Chunk> chunks_;
size_t block_length_;
};