Index: webrtc/video/video_quality_test.cc |
diff --git a/webrtc/video/video_quality_test.cc b/webrtc/video/video_quality_test.cc |
index 42d057daa328e69423913cfc881267dcd1ab1eef..64fc51813ae3813ac3261704021f7376ee2f90c6 100644 |
--- a/webrtc/video/video_quality_test.cc |
+++ b/webrtc/video/video_quality_test.cc |
@@ -230,7 +230,7 @@ class VideoAnalyzer : public PacketReceiver, |
RtpUtility::RtpHeaderParser parser(packet, length); |
RTPHeader header; |
parser.Parse(&header); |
- if (!IsFlexfec(header.payloadType) && header.ssrc != ssrc_to_analyze_) { |
+ if (!IsFlexfec(header.payloadType) && header.ssrc == ssrc_to_analyze_) { |
// Ignore FlexFEC timestamps, to avoid collisions with media timestamps. |
// (FlexFEC and media are sent on different SSRCs, which have different |
// timestamps spaces.) |
@@ -285,6 +285,7 @@ class VideoAnalyzer : public PacketReceiver, |
{ |
rtc::CritScope lock(&crit_); |
if (rtp_timestamp_delta_ == 0 && header.ssrc == ssrc_to_analyze_) { |
+ RTC_CHECK(static_cast<bool>(first_sent_timestamp_)); |
rtp_timestamp_delta_ = header.timestamp - *first_sent_timestamp_; |
} |