Index: webrtc/video/receive_statistics_proxy.cc |
diff --git a/webrtc/video/receive_statistics_proxy.cc b/webrtc/video/receive_statistics_proxy.cc |
index 4757efa81b6cf3435212fea2f3e4dbb53d283734..4970982ad5c4c40bc87ec19520bd7b54128399d0 100644 |
--- a/webrtc/video/receive_statistics_proxy.cc |
+++ b/webrtc/video/receive_statistics_proxy.cc |
@@ -247,7 +247,7 @@ void ReceiveStatisticsProxy::OnDecodedFrame() { |
rtc::CritScope lock(&crit_); |
decode_fps_estimator_.Update(1, now); |
- stats_.decode_frame_rate = decode_fps_estimator_.Rate(now); |
+ stats_.decode_frame_rate = decode_fps_estimator_.Rate(now).value_or(0); |
} |
void ReceiveStatisticsProxy::OnRenderedFrame(int width, int height) { |
@@ -257,7 +257,7 @@ void ReceiveStatisticsProxy::OnRenderedFrame(int width, int height) { |
rtc::CritScope lock(&crit_); |
renders_fps_estimator_.Update(1, now); |
- stats_.render_frame_rate = renders_fps_estimator_.Rate(now); |
+ stats_.render_frame_rate = renders_fps_estimator_.Rate(now).value_or(0); |
render_width_counter_.Add(width); |
render_height_counter_.Add(height); |
render_fps_tracker_.AddSamples(1); |