完善twcc rtcp包相关代码

This commit is contained in:
xiongziliang 2021-09-25 17:34:12 +08:00
parent 1f99708548
commit 305d9bc259
2 changed files with 3 additions and 2 deletions

View File

@ -460,7 +460,7 @@ map<uint16_t, std::pair<SymbolStatus, uint32_t/*stamp*/> > FCI_TWCC::getPacketCh
}
for (auto &pr : ret) {
CHECK(ptr <= end);
pr.second.second = 250 * getRecvDelta(pr.second.first, ptr, end);
pr.second.second = getRecvDelta(pr.second.first, ptr, end);
}
return ret;
}

View File

@ -350,9 +350,10 @@ public:
void check(size_t size);
string dumpString(size_t total_size) const;
uint16_t getBaseSeq() const;
//单位64ms
uint32_t getReferenceTime() const;
uint16_t getPacketCount() const;
map<uint16_t, std::pair<SymbolStatus, uint32_t/*recv delta 微秒*/> > getPacketChunkList(size_t total_size) const;
map<uint16_t, std::pair<SymbolStatus, uint32_t/*recv delta,单位为250us*/> > getPacketChunkList(size_t total_size) const;
private:
//base sequence number,基础序号,本次反馈的第一个包的序号;也就是RTP扩展头的序列号