diff --git a/test/pc/e2e/analyzer/video/default_video_quality_analyzer.cc b/test/pc/e2e/analyzer/video/default_video_quality_analyzer.cc index 473461c3ba..d2f5725cc9 100644 --- a/test/pc/e2e/analyzer/video/default_video_quality_analyzer.cc +++ b/test/pc/e2e/analyzer/video/default_video_quality_analyzer.cc @@ -285,8 +285,12 @@ void DefaultVideoQualityAnalyzer::OnFramePreEncode( << "DefaultVideoQualityAnalyzer has to be started before use"; auto it = captured_frames_in_flight_.find(frame.id()); - RTC_CHECK(it != captured_frames_in_flight_.end()) - << "Frame id=" << frame.id() << " not found"; + if (it == captured_frames_in_flight_.end()) { + // If the frame is not found, it is possible that it has been encoded twice + // and that it was received by all the participants the first time. + RTC_LOG(LS_WARNING) << "Frame id=" << frame.id() << " not found."; + return; + } FrameInFlight& frame_in_flight = it->second; frame_counters_.pre_encoded++; size_t peer_index = peers_->index(peer_name);