[fix] fix transport feedback module

This commit is contained in:
dijunkun
2024-12-12 16:37:11 +08:00
parent bacf62c6b8
commit c6d4b172fc
5 changed files with 474 additions and 43 deletions

View File

@@ -4,12 +4,12 @@
#define IP_PACKET_SIZE 1500 // we assume ethernet
bool RtcpPacket::OnBufferFull(std::vector<uint8_t>& packet,
bool RtcpPacket::OnBufferFull(uint8_t* packet, size_t* index,
PacketReadyCallback callback) const {
if (packet.empty()) {
if (*index == 0) {
return false;
}
callback(packet);
callback(packet, *index);
return true;
}