add support for av1 svc (#669)

* add support for av1 svc
This commit is contained in:
cnderrauber
2022-05-06 18:24:29 +08:00
committed by GitHub
parent 7f38164ef6
commit 07b93e2e5b
20 changed files with 2107 additions and 243 deletions
+5 -5
View File
@@ -985,8 +985,8 @@ func (s *StreamAllocator) allocateAllTracks() {
for spatial := int32(0); spatial <= DefaultMaxLayerSpatial; spatial++ {
for temporal := int32(0); temporal <= DefaultMaxLayerTemporal; temporal++ {
layers := VideoLayers{
spatial: spatial,
temporal: temporal,
Spatial: spatial,
Temporal: temporal,
}
for _, track := range sorted {
@@ -1424,11 +1424,11 @@ func (t TrackSorter) Less(i, j int) bool {
return t[i].priority > t[j].priority
}
if t[i].maxLayers.spatial != t[j].maxLayers.spatial {
return t[i].maxLayers.spatial > t[j].maxLayers.spatial
if t[i].maxLayers.Spatial != t[j].maxLayers.Spatial {
return t[i].maxLayers.Spatial > t[j].maxLayers.Spatial
}
return t[i].maxLayers.temporal > t[j].maxLayers.temporal
return t[i].maxLayers.Temporal > t[j].maxLayers.Temporal
}
// ------------------------------------------------