Relax too strict DCHECKs while parsing rtcp reports
BUG=chromium:649129 Review-Url: https://codereview.webrtc.org/2361493004 Cr-Commit-Position: refs/heads/master@{#14353}
This commit is contained in:
parent
aac9d6fb25
commit
f292e31511
@ -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;
|
||||
}
|
||||
|
||||
@ -68,7 +68,7 @@ bool SenderReport::Parse(const CommonHeader& packet) {
|
||||
next_block += ReportBlock::kLength;
|
||||
}
|
||||
// Double check we didn't read beyond provided buffer.
|
||||
RTC_DCHECK_EQ(next_block - payload,
|
||||
RTC_DCHECK_LE(next_block - payload,
|
||||
static_cast<ptrdiff_t>(packet.payload_size_bytes()));
|
||||
return true;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user