Irrational check in the constructor of DesktopFrame: stride_ may be negative
TBR=JamieWalch@chromium.org BUG=webrtc:7950 Review-Url: https://codereview.webrtc.org/2987363002 . Cr-Commit-Position: refs/heads/master@{#19205}
This commit is contained in:
parent
09f16c6a0a
commit
fdd1f21624
@ -39,7 +39,6 @@ DesktopFrame::DesktopFrame(DesktopRect rect,
|
||||
stride_(stride),
|
||||
capture_time_ms_(0),
|
||||
capturer_id_(DesktopCapturerId::kUnknown) {
|
||||
RTC_DCHECK(stride_ >= 0);
|
||||
RTC_DCHECK(rect.width() >= 0);
|
||||
RTC_DCHECK(rect.height() >= 0);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user