Minor fixes to avoid crash on some traces that have unexpected data.

Bug: webrtc:0
Change-Id: I6950004be2c725c1d13889f37e4a6208ca41f47e
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/178909
Commit-Queue: Ying Wang <yinwa@webrtc.org>
Reviewed-by: Björn Terelius <terelius@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#32138}
This commit is contained in:
Ying Wang
2020-09-18 12:33:19 +02:00
committed by Commit Bot
parent 70026f9d14
commit bd8409b70f

View File

@ -2160,7 +2160,7 @@ std::vector<LoggedPacketInfo> ParsedRtcEventLog::GetPacketInfos(
// Add an offset to avoid |capture_ticks| to become negative in the case
// of reordering.
constexpr int64_t kStartingCaptureTimeTicks = 90 * 48 * 1000;
constexpr int64_t kStartingCaptureTimeTicks = 90 * 48 * 10000;
int64_t capture_ticks =
kStartingCaptureTimeTicks +
stream->unwrap_capture_ticks.Unwrap(rtp.header.timestamp);