mirror of
https://github.com/jech/galene.git
synced 2024-12-22 23:35:46 +01:00
Kill obsolete function.
This commit is contained in:
parent
038ab46d2b
commit
1de42bd80e
1 changed files with 0 additions and 22 deletions
22
client.go
22
client.go
|
@ -538,28 +538,6 @@ func trackKinds(down *downConnection) (audio bool, video bool) {
|
|||
return
|
||||
}
|
||||
|
||||
func splitBitrate(bitrate uint32, audio, video bool) (uint32, uint32) {
|
||||
if audio && !video {
|
||||
return bitrate, 0
|
||||
}
|
||||
if !audio && video {
|
||||
return 0, bitrate
|
||||
}
|
||||
|
||||
if bitrate < 6000 {
|
||||
return 6000, 0
|
||||
}
|
||||
|
||||
if bitrate < 12000 {
|
||||
return bitrate, 0
|
||||
}
|
||||
audioRate := 8000 + (bitrate-8000)/4
|
||||
if audioRate > 96000 {
|
||||
audioRate = 96000
|
||||
}
|
||||
return audioRate, bitrate - audioRate
|
||||
}
|
||||
|
||||
func updateUpBitrate(up *upConnection) {
|
||||
for _, t := range up.tracks {
|
||||
t.maxBitrate = ^uint64(0)
|
||||
|
|
Loading…
Reference in a new issue