Return max spatial layer from selectors. (#1743)
* Return max spatial layer from selectors. With differing requirements of SVC and allowing overshoot in Simulcast, selectors are best placed to indicate what is the max spatial layer when they indicate a switch to max spatial layer. * fix test * prevent race
This commit is contained in:
@@ -129,6 +129,7 @@ type TranslationParams struct {
|
||||
isResuming bool
|
||||
isSwitchingToRequestSpatial bool
|
||||
isSwitchingToMaxSpatial bool
|
||||
maxSpatialLayer int32
|
||||
rtp *TranslationParamsRTP
|
||||
codecBytes []byte
|
||||
ddBytes []byte
|
||||
@@ -1570,6 +1571,7 @@ func (f *Forwarder) getTranslationParamsVideo(extPkt *buffer.ExtPacket, layer in
|
||||
tp.isResuming = result.IsResuming
|
||||
tp.isSwitchingToRequestSpatial = result.IsSwitchingToRequestSpatial
|
||||
tp.isSwitchingToMaxSpatial = result.IsSwitchingToMaxSpatial
|
||||
tp.maxSpatialLayer = result.MaxSpatialLayer
|
||||
tp.ddBytes = result.DependencyDescriptorExtension
|
||||
tp.marker = result.RTPMarker
|
||||
|
||||
|
||||
Reference in New Issue
Block a user