Temporary change: use pre-defined rids (#3767)
To address a compatibility issue across relay. Will revert this once the compatibility is addressed.
This commit is contained in:
@@ -597,7 +597,8 @@ func (s *StreamTrackerManager) maxExpectedLayerFromTrackInfoLocked() {
|
||||
ti := s.trackInfo.Load()
|
||||
if ti != nil {
|
||||
for _, layer := range ti.Layers {
|
||||
if layer.SpatialLayer > s.maxExpectedLayer {
|
||||
spatialLayer := buffer.VideoQualityToSpatialLayer(layer.Quality, ti)
|
||||
if spatialLayer > s.maxExpectedLayer {
|
||||
s.maxExpectedLayer = layer.SpatialLayer
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user