@@ -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