Skip to content

Commit

Permalink
Apply changes to TestTransportCongestionControlServer.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
jmillan committed Jul 4, 2024
1 parent a999cd6 commit a457cd5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions worker/test/src/RTC/TestTransportCongestionControlServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ void validate(std::vector<TestTransportCongestionControlServerInput>& inputs, Te
tccServer.SetMaxIncomingBitrate(150000);
tccServer.TransportConnected();

RtpPacket* packet = RtpPacket::Parse(buffer, sizeof(buffer));
std::unique_ptr<RtpPacket> packet{ RtpPacket::Parse(buffer, sizeof(buffer)) };

packet->SetTransportWideCc01ExtensionId(5);
packet->SetSequenceNumber(1);
Expand All @@ -116,7 +116,7 @@ void validate(std::vector<TestTransportCongestionControlServerInput>& inputs, Te
}

packet->UpdateTransportWideCc01(input.wideSeqNumber);
tccServer.IncomingPacket(input.nowMs, packet);
tccServer.IncomingPacket(input.nowMs, packet.get());
}

tccServer.FillAndSendTransportCcFeedback();
Expand Down

0 comments on commit a457cd5

Please sign in to comment.