Ensure RtcEventLogEncoderNewFormat::EncodeRemoteEstimate handles infite
numbers Bug: webrtc:11878 Change-Id: I3c2a2ef6b8cba0ddb2bf00d84c279d89cbe64478 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/182500 Reviewed-by: Björn Terelius <terelius@webrtc.org> Commit-Queue: Per Kjellander <perkj@webrtc.org> Cr-Commit-Position: refs/heads/master@{#31988}
This commit is contained in:
committed by
Commit Bot
parent
5923083657
commit
db724a1a23
@ -1409,7 +1409,7 @@ void RtcEventLogEncoderNewFormat::EncodeRemoteEstimate(
|
||||
// link_capacity_lower_kbps
|
||||
for (size_t i = 0; i < values.size(); ++i) {
|
||||
const auto* event = batch[i + 1];
|
||||
if (base_event->link_capacity_lower_.IsFinite()) {
|
||||
if (event->link_capacity_lower_.IsFinite()) {
|
||||
values[i] = event->link_capacity_lower_.kbps<uint32_t>();
|
||||
} else {
|
||||
values[i].reset();
|
||||
@ -1423,7 +1423,7 @@ void RtcEventLogEncoderNewFormat::EncodeRemoteEstimate(
|
||||
// link_capacity_upper_kbps
|
||||
for (size_t i = 0; i < values.size(); ++i) {
|
||||
const auto* event = batch[i + 1];
|
||||
if (base_event->link_capacity_upper_.IsFinite()) {
|
||||
if (event->link_capacity_upper_.IsFinite()) {
|
||||
values[i] = event->link_capacity_upper_.kbps<uint32_t>();
|
||||
} else {
|
||||
values[i].reset();
|
||||
|
||||
Reference in New Issue
Block a user