NetEq jitter calculation now done in uint64_t.

The timestamps are 32 bit and can (conceivably) be spaced far enough
apart for the calculation, which is done in Q4, to overflow.

BUG=chromium:653268

Review-Url: https://codereview.webrtc.org/2460393002
Cr-Commit-Position: refs/heads/master@{#14856}
This commit is contained in:
ossu
2016-10-31 08:59:26 -07:00
committed by Commit bot
parent 80ac24dd36
commit 6b6c88f184
2 changed files with 4 additions and 4 deletions

View File

@ -48,7 +48,7 @@ class Rtcp {
// report was generated.
uint32_t expected_prior_; // Expected number of packets, at the time of the
// last report.
uint32_t jitter_; // Current jitter value.
int64_t jitter_; // Current jitter value in Q4.
int32_t transit_; // Clock difference for previous packet.
RTC_DISALLOW_COPY_AND_ASSIGN(Rtcp);