Index: webrtc/video/rtp_stream_receiver.cc |
diff --git a/webrtc/video/rtp_stream_receiver.cc b/webrtc/video/rtp_stream_receiver.cc |
index bc4aa37366e918219453591b22795519a9d19d52..81790bc22ed5f4f5012fa51e6b72227ba8c681dc 100644 |
--- a/webrtc/video/rtp_stream_receiver.cc |
+++ b/webrtc/video/rtp_stream_receiver.cc |
@@ -620,6 +620,14 @@ bool RtpStreamReceiver::IsPacketRetransmitted(const RTPHeader& header, |
void RtpStreamReceiver::UpdateHistograms() { |
FecPacketCounter counter = ulpfec_receiver_->GetPacketCounter(); |
+ if (counter.first_packet_time_ms == -1) |
+ return; |
+ |
+ int64_t elapsed_sec = |
+ (clock_->TimeInMilliseconds() - counter.first_packet_time_ms) / 1000; |
+ if (elapsed_sec < metrics::kMinRunTimeInSeconds) |
+ return; |
+ |
if (counter.num_packets > 0) { |
RTC_HISTOGRAM_PERCENTAGE( |
"WebRTC.Video.ReceivedFecPacketsInPercent", |