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

Producer: fix RTX handling

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