set max layer in allocation (#4033)

This commit is contained in:
Raja Subramanian
2025-10-26 17:51:35 +05:30
committed by GitHub
parent 15b19ccd26
commit 29117b1422
+1
View File
@@ -581,6 +581,7 @@ func (f *Forwarder) SetMaxSpatialLayer(spatialLayer int32) (bool, buffer.VideoLa
alloc.TargetLayer = f.vls.GetMax()
alloc.RequestLayerSpatial = f.vls.GetMax().Spatial
alloc.MaxLayer = f.vls.GetMax()
alloc.DistanceToDesired = getDistanceToDesired(
f.muted,