提交 99d947a2 authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo

Producer: fix RTX handling

上级 93c7ae70
...@@ -184,16 +184,11 @@ namespace RTC ...@@ -184,16 +184,11 @@ namespace RTC
// Find the corresponding RtpStreamRecv. // Find the corresponding RtpStreamRecv.
uint32_t ssrc = packet->GetSsrc(); uint32_t ssrc = packet->GetSsrc();
RTC::RtpStreamRecv* rtpStream{ nullptr }; RTC::RtpStreamRecv* rtpStream{ nullptr };
std::unique_ptr<RTC::RtpPacket> rtxDecodedPacket;
if (this->rtpStreams.find(ssrc) != this->rtpStreams.end()) if (this->rtpStreams.find(ssrc) != this->rtpStreams.end())
{ {
rtpStream = this->rtpStreams[ssrc]; rtpStream = this->rtpStreams[ssrc];
// Process the packet at codec level.
if (packet->GetPayloadType() == rtpStream->GetPayloadType())
Codecs::ProcessRtpPacket(packet, rtpStream->GetMimeType());
// Process the packet. // Process the packet.
if (!rtpStream->ReceivePacket(packet)) if (!rtpStream->ReceivePacket(packet))
return; return;
...@@ -202,10 +197,6 @@ namespace RTC ...@@ -202,10 +197,6 @@ namespace RTC
{ {
rtpStream = this->mapRtxStreams[ssrc]; rtpStream = this->mapRtxStreams[ssrc];
// Process the packet at codec level.
if (packet->GetPayloadType() == rtpStream->GetPayloadType())
Codecs::ProcessRtpPacket(packet, rtpStream->GetMimeType());
// Process the packet. // Process the packet.
if (!rtpStream->ReceiveRtxPacket(packet)) if (!rtpStream->ReceiveRtxPacket(packet))
return; return;
...@@ -217,6 +208,10 @@ namespace RTC ...@@ -217,6 +208,10 @@ namespace RTC
return; return;
} }
// Process the packet at codec level.
if (packet->GetPayloadType() == rtpStream->GetPayloadType())
Codecs::ProcessRtpPacket(packet, rtpStream->GetMimeType());
RTC::RtpEncodingParameters::Profile profile; RTC::RtpEncodingParameters::Profile profile;
try try
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论