mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 19:00:01 +08:00
RTC: 修复TWCC feedback rtcp解析status chunk错误的问题 (#3059)
在解析packet status chunk的时候使用了uint8_t类型的循环变量,如果反馈的包数量超过255,那么解析会陷入循环,出现异常
This commit is contained in:
parent
586bb73912
commit
a8e2d602cb
@ -432,7 +432,7 @@ FCI_TWCC::TwccPacketStatus FCI_TWCC::getPacketChunkList(size_t total_size) const
|
|||||||
CHECK(ptr < end);
|
CHECK(ptr < end);
|
||||||
auto seq = getBaseSeq();
|
auto seq = getBaseSeq();
|
||||||
auto rtp_count = getPacketCount();
|
auto rtp_count = getPacketCount();
|
||||||
for (uint8_t i = 0; i < rtp_count;) {
|
for (uint16_t i = 0; i < rtp_count;) {
|
||||||
CHECK(ptr + RunLengthChunk::kSize <= end);
|
CHECK(ptr + RunLengthChunk::kSize <= end);
|
||||||
RunLengthChunk *chunk = (RunLengthChunk *)ptr;
|
RunLengthChunk *chunk = (RunLengthChunk *)ptr;
|
||||||
if (!chunk->type) {
|
if (!chunk->type) {
|
||||||
|
Loading…
Reference in New Issue
Block a user