Skip to content

Commit

Permalink
Flip sign bit of clock offset
Browse files Browse the repository at this point in the history
  • Loading branch information
alvestrand committed Oct 3, 2024
1 parent 0ca6426 commit df96ba2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions draft-alvestrand-avtcore-abs-capture-time.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,12 +201,13 @@ the most prominent CSRC as the first CSRC in a packet's CSRC list.

The NTP clock offset can be calculated from an SR packet in the following way:

- Take the arrival time of an SR packet, in the receiver's NTP clock
- Subtract the NTP timestamp from the SR packet
- Take the NTP timestamp from the SR packet
- Subtract the arrival time of the SR packet, in the receiver's NTP clock
- Add half the estimated RTT between the sender and the receiver

The resulting number should be a reasonable approximation of the offset between the
two clocks.
two clocks, with positive numbers indicating that the sender's clock is running ahead,
and negative numbers indicate that the sender's clock is running behind.


#### Timestamp interpolation
Expand Down

0 comments on commit df96ba2

Please sign in to comment.