diff options
author | Bjorn Terelius <terelius@webrtc.org> | 2020-06-09 10:29:09 +0200 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-06-09 09:26:41 +0000 |
commit | 571e130ce25e3e142a8f7b8180b8a7a2a5120467 (patch) | |
tree | b37a42624365791dcfd0cd46af68f3b029e5cd95 /rtc_tools | |
parent | bf3f65815f243a2da8bd763bc8eca4c112bd32fa (diff) | |
download | webrtc-571e130ce25e3e142a8f7b8180b8a7a2a5120467.tar.gz |
Fix nondeterministic behavior in rtc_event_log_visualizer caused by uninitialized variables.
Bug: webrtc:11566
Change-Id: I10dcb84c8e7e231fe24dc322a0359742dded05bb
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/176515
Commit-Queue: Björn Terelius <terelius@webrtc.org>
Reviewed-by: Andrey Logvin <landrey@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#31471}
Diffstat (limited to 'rtc_tools')
-rw-r--r-- | rtc_tools/rtc_event_log_visualizer/analyzer.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/rtc_tools/rtc_event_log_visualizer/analyzer.cc b/rtc_tools/rtc_event_log_visualizer/analyzer.cc index cb270c1a96..287fbe2eb8 100644 --- a/rtc_tools/rtc_event_log_visualizer/analyzer.cc +++ b/rtc_tools/rtc_event_log_visualizer/analyzer.cc @@ -1469,8 +1469,10 @@ void EventLogAnalyzer::CreateReceiveSideBweSimulationGraph(Plot* plot) { } private: - uint32_t last_bitrate_bps_; - bool bitrate_updated_; + // We don't know the start bitrate, but assume that it is the default 300 + // kbps. + uint32_t last_bitrate_bps_ = 300000; + bool bitrate_updated_ = false; }; std::multimap<int64_t, const RtpPacketType*> incoming_rtp; |