Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(825)

Unified Diff: webrtc/modules/rtp_rtcp/source/rtcp_packet/receiver_report.cc

Issue 2361493004: Relax too strict DCHECKs while parsing rtcp reports (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webrtc/modules/rtp_rtcp/source/rtcp_packet/sender_report.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/rtp_rtcp/source/rtcp_packet/receiver_report.cc
diff --git a/webrtc/modules/rtp_rtcp/source/rtcp_packet/receiver_report.cc b/webrtc/modules/rtp_rtcp/source/rtcp_packet/receiver_report.cc
index 10744ad939e92a76b1f116bca800b61ef2c780a0..a393181cea9714906448eed189fc81419d593673 100644
--- a/webrtc/modules/rtp_rtcp/source/rtcp_packet/receiver_report.cc
+++ b/webrtc/modules/rtp_rtcp/source/rtcp_packet/receiver_report.cc
@@ -50,7 +50,7 @@ bool ReceiverReport::Parse(const CommonHeader& packet) {
next_report_block += ReportBlock::kLength;
}
- RTC_DCHECK_EQ(next_report_block - packet.payload(),
+ RTC_DCHECK_LE(next_report_block - packet.payload(),
static_cast<ptrdiff_t>(packet.payload_size_bytes()));
return true;
}
« no previous file with comments | « no previous file | webrtc/modules/rtp_rtcp/source/rtcp_packet/sender_report.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698