提交 ba1643ba authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo

Room.rtpRetransmissionContainer must hold up to 17 packets.

上级 e7e645b0
...@@ -62,7 +62,7 @@ namespace RTC ...@@ -62,7 +62,7 @@ namespace RTC
roomId(roomId), roomId(roomId),
listener(listener), listener(listener),
notifier(notifier), notifier(notifier),
rtpRetransmissionContainer(201) // Can retransmit up to 200 RTP packets. rtpRetransmissionContainer(18) // Can retransmit up to 17 RTP packets.
{ {
MS_TRACE(); MS_TRACE();
......
...@@ -86,7 +86,7 @@ namespace RTC ...@@ -86,7 +86,7 @@ namespace RTC
uint32_t last_seq32 = first_seq32 + maxRequestedPackets - 1; uint32_t last_seq32 = first_seq32 + maxRequestedPackets - 1;
size_t container_idx = 0; size_t container_idx = 0;
// Number of requested packets cannot be greater than the container size - 1 // Number of requested packets cannot be greater than the container size - 1.
MS_ASSERT(container.size() - 1 >= maxRequestedPackets, "RtpPacket container is too small"); MS_ASSERT(container.size() - 1 >= maxRequestedPackets, "RtpPacket container is too small");
auto buffer_it = this->buffer.begin(); auto buffer_it = this->buffer.begin();
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论