Unverified 提交 87583523 authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo 提交者: GitHub

Fix issue 932 (#933)

上级 ff08deb4
# Changelog
### NEXT
* Fix worker crash due to `std::out_of_range` exception (PR #933).
### 3.10.11
* RTCP: Fix trailing space needed by srtp_protect_rtcp() (PR #929).
......
......@@ -453,7 +453,7 @@ namespace RTC
// This can be null.
auto* producerRtpStream = this->producerRtpStreams.at(spatialLayer);
// Producer stream does not exist or it's not good. Ignore.
// Producer stream does not exist. Ignore.
if (!producerRtpStream)
continue;
......@@ -627,7 +627,7 @@ namespace RTC
auto nowMs = DepLibUV::GetTimeMs();
uint32_t desiredBitrate{ 0u };
for (size_t sIdx{ this->producerRtpStreams.size() - 1 }; sIdx >= 0; --sIdx)
for (auto sIdx{ static_cast<int16_t>(this->producerRtpStreams.size() - 1) }; sIdx >= 0; --sIdx)
{
auto* producerRtpStream = this->producerRtpStreams.at(sIdx);
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论