mirror of
https://github.com/jech/galene.git
synced 2024-12-22 23:35:46 +01:00
Reduce the NACK delay.
We bound the NACK delay to 2 packets, which is what TCP does. Thus, reducing the delay should be safe.
This commit is contained in:
parent
5d38b0a231
commit
e88942c9a9
1 changed files with 4 additions and 3 deletions
|
@ -167,9 +167,10 @@ func readLoop(conn *rtpUpConnection, track *rtpUpTrack) {
|
|||
if (delta & 0x8000) != 0 {
|
||||
delta = 0
|
||||
}
|
||||
// send a NACK if a packet is late by 65ms or 2 packets,
|
||||
// whichever is more
|
||||
packets := rate / 16
|
||||
// send a NACK if a packet is late by 20ms or 2 packets,
|
||||
// whichever is more. Since TCP sends a dupack after 2 packets,
|
||||
// this should be safe.
|
||||
packets := rate / 50
|
||||
if packets > 24 {
|
||||
packets = 24
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue