提交 35adfd21 authored 作者: José Luis Millán's avatar José Luis Millán

Fix #68. Remove redundant calls to htonl|ntohl in RTP BYE

上级 2168fdad
......@@ -31,7 +31,7 @@ namespace RTC { namespace RTCP
return nullptr;
}
packet->AddSsrc(ntohl(Utils::Byte::Get4Bytes(data, offset)));
packet->AddSsrc(Utils::Byte::Get4Bytes(data, offset));
offset += sizeof(uint32_t);
}
......@@ -59,7 +59,7 @@ namespace RTC { namespace RTCP
// SSRCs.
for (auto ssrc : this->ssrcs)
{
Utils::Byte::Set4Bytes(buffer, offset, htonl(ssrc));
Utils::Byte::Set4Bytes(buffer, offset, ssrc);
offset += sizeof(uint32_t);
}
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论