提交 25ead7d4 authored 作者: José Luis Millán's avatar José Luis Millán

Style

上级 85f3dcc7
...@@ -14,6 +14,7 @@ namespace RTC ...@@ -14,6 +14,7 @@ namespace RTC
{ {
/* Static. */ /* Static. */
static uint8_t RtxPacketBuffer[RtpBufferSize];
static constexpr uint16_t RtpPacketsBeforeProbation{ 2000 }; static constexpr uint16_t RtpPacketsBeforeProbation{ 2000 };
static std::vector<RTC::RtpPacket*> RtpRetransmissionContainer(18); static std::vector<RTC::RtpPacket*> RtpRetransmissionContainer(18);
...@@ -783,9 +784,7 @@ namespace RTC ...@@ -783,9 +784,7 @@ namespace RTC
if (this->rtpStream->HasRtx()) if (this->rtpStream->HasRtx())
{ {
static uint8_t rtxBuffer[MtuSize]; rtxPacket = packet->Clone(RtxPacketBuffer);
rtxPacket = packet->Clone(rtxBuffer);
this->rtpStream->RtxEncode(rtxPacket); this->rtpStream->RtxEncode(rtxPacket);
MS_DEBUG_TAG( MS_DEBUG_TAG(
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论