Index: webrtc/modules/rtp_rtcp/source/rtp_packet.cc |
diff --git a/webrtc/modules/rtp_rtcp/source/rtp_packet.cc b/webrtc/modules/rtp_rtcp/source/rtp_packet.cc |
index 07aeb7130d586da3d145b497f14dffebff34149a..f6634867f689e1593cadb5dc5ef2e53bfe22fb04 100644 |
--- a/webrtc/modules/rtp_rtcp/source/rtp_packet.cc |
+++ b/webrtc/modules/rtp_rtcp/source/rtp_packet.cc |
@@ -416,13 +416,10 @@ |
RTC_DCHECK(offset); |
for (size_t i = 0; i < num_extensions_; ++i) { |
if (extension_entries_[i].type == type) { |
- if (length != extension_entries_[i].length) { |
- LOG(LS_WARNING) << "Length mismatch for extension '" << type |
- << "': expected " << static_cast<int>(length) |
- << ", received " |
- << static_cast<int>(extension_entries_[i].length); |
- return false; |
- } |
+ RTC_CHECK_EQ(length, extension_entries_[i].length) |
+ << "Length mismatch for extension '" << type << "'" |
+ << "should be " << length << ", received " |
+ << extension_entries_[i].length; |
*offset = extension_entries_[i].offset; |
return true; |
} |