Skip to content

Commit 971ac41

Browse files
committed
format
1 parent 6e60816 commit 971ac41

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

worker/src/RTC/SimulcastProducerStreamManager.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ namespace RTC
627627
if (this->keyFrameForTsOffsetRequested)
628628
{
629629
// Give up and use the theoretical offset.
630-
if (std::cmp_greater(tsExtraOffset , maxTsExtraOffset))
630+
if (std::cmp_greater(tsExtraOffset, maxTsExtraOffset))
631631
{
632632
MS_WARN_TAG(
633633
simulcast,
@@ -638,7 +638,7 @@ namespace RTC
638638
tsExtraOffset = 1u;
639639
}
640640
}
641-
else if (std::cmp_greater(tsExtraOffset , maxTsExtraOffset))
641+
else if (std::cmp_greater(tsExtraOffset, maxTsExtraOffset))
642642
{
643643
MS_WARN_TAG(
644644
simulcast,

worker/src/RTC/SvcProducerStreamManager.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ namespace RTC
159159
int16_t spatialLayer{ 0 };
160160
int16_t temporalLayer{ 0 };
161161

162-
for (; std::cmp_less(spatialLayer , this->producerRtpStream->GetSpatialLayers()); ++spatialLayer)
162+
for (; std::cmp_less(spatialLayer, this->producerRtpStream->GetSpatialLayers()); ++spatialLayer)
163163
{
164164
// If this is higher than current spatial layer and we moved to current
165165
// spatial layer due to BWE limitations, check how much it has elapsed
@@ -184,7 +184,8 @@ namespace RTC
184184
temporalLayer = 0;
185185

186186
// Check bitrate of every temporal layer.
187-
for (; std::cmp_less(temporalLayer , this->producerRtpStream->GetTemporalLayers()); ++temporalLayer)
187+
for (; std::cmp_less(temporalLayer, this->producerRtpStream->GetTemporalLayers());
188+
++temporalLayer)
188189
{
189190
// Ignore temporal layers lower than the one we already have (taking
190191
// into account the spatial layer too).
@@ -557,7 +558,7 @@ namespace RTC
557558
goto done;
558559
}
559560

560-
for (; std::cmp_less(spatialLayer , this->producerRtpStream->GetSpatialLayers()); ++spatialLayer)
561+
for (; std::cmp_less(spatialLayer, this->producerRtpStream->GetSpatialLayers()); ++spatialLayer)
561562
{
562563
// If this is higher than current spatial layer and we moved to current
563564
// spatial layer due to BWE limitations, check how much it has elapsed

0 commit comments

Comments
 (0)