Breaking up calc for easier reading. (#402)

* WIP commit

* fix test

* More clean up

* cast to right size

* use local variable

* set a default RTT

* Do not log RTX, although need to figure out source of RTX

* fix test
This commit is contained in:
Raja Subramanian
2022-02-04 14:18:25 +05:30
committed by GitHub
parent 05c8a6b2fd
commit 4388a68b7e
6 changed files with 156 additions and 122 deletions
+2 -4
View File
@@ -59,6 +59,7 @@ func TestNack(t *testing.T) {
HeaderExtensions: nil,
Codecs: []webrtc.RTPCodecParameters{vp8Codec},
}, vp8Codec.RTPCodecCapability, Options{})
buff.nacker.SetRTT(0)
for i := 0; i < 15; i++ {
if i == 1 {
continue
@@ -104,10 +105,6 @@ func TestNack(t *testing.T) {
})
}
}
case *rtcp.PictureLossIndication:
if p.MediaSSRC == 123 {
// wg.Done()
}
}
}
})
@@ -115,6 +112,7 @@ func TestNack(t *testing.T) {
HeaderExtensions: nil,
Codecs: []webrtc.RTPCodecParameters{vp8Codec},
}, vp8Codec.RTPCodecCapability, Options{})
buff.nacker.SetRTT(0)
for i := 0; i < 15; i++ {
if i > 0 && i < 5 {
continue