Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(54)

Issue 2460393002: NetEq jitter calculation now done in int64_t. (Closed)

Created:
4 years, 1 month ago by ossu
Modified:
4 years, 1 month ago
Reviewers:
hlundin-webrtc
CC:
webrtc-reviews_webrtc.org, kwiberg-webrtc, tlegrand-webrtc, tterriberry_mozilla.com, audio-team_agora.io, hlundin-webrtc, peah-webrtc, minyue-webrtc
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

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 Committed: https://crrev.com/6b6c88f18428deddf0defdf37fc77a21eef36c47 Cr-Commit-Position: refs/heads/master@{#14856}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Turned jitter to int64_t. Using std::abs over SPL. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -4 lines) Patch
M webrtc/modules/audio_coding/neteq/rtcp.h View 1 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/audio_coding/neteq/rtcp.cc View 1 2 chunks +3 lines, -3 lines 1 comment Download

Messages

Total messages: 20 (13 generated)
ossu
I'm not sure what use we'd have of packets with jitter such as this, but ...
4 years, 1 month ago (2016-10-31 13:42:07 UTC) #4
ossu
https://codereview.webrtc.org/2460393002/diff/1/webrtc/modules/audio_coding/neteq/rtcp.cc File webrtc/modules/audio_coding/neteq/rtcp.cc (right): https://codereview.webrtc.org/2460393002/diff/1/webrtc/modules/audio_coding/neteq/rtcp.cc#newcode50 webrtc/modules/audio_coding/neteq/rtcp.cc:50: uint64_t jitter_diff = (uint64_t{ts_diff} << 4) - jitter_; Uh... ...
4 years, 1 month ago (2016-10-31 14:11:01 UTC) #7
hlundin-webrtc
lgtm
4 years, 1 month ago (2016-10-31 14:37:47 UTC) #8
ossu
https://codereview.webrtc.org/2460393002/diff/20001/webrtc/modules/audio_coding/neteq/rtcp.cc File webrtc/modules/audio_coding/neteq/rtcp.cc (right): https://codereview.webrtc.org/2460393002/diff/20001/webrtc/modules/audio_coding/neteq/rtcp.cc#newcode52 webrtc/modules/audio_coding/neteq/rtcp.cc:52: RTC_DCHECK_GE(jitter_, 0); This, really, should be impossible: jitter_diff should ...
4 years, 1 month ago (2016-10-31 14:53:48 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2460393002/20001
4 years, 1 month ago (2016-10-31 15:57:52 UTC) #15
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-10-31 15:59:29 UTC) #17
commit-bot: I haz the power
4 years, 1 month ago (2016-10-31 16:14:57 UTC) #20
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/6b6c88f18428deddf0defdf37fc77a21eef36c47
Cr-Commit-Position: refs/heads/master@{#14856}

Powered by Google App Engine
This is Rietveld 408576698