Index: webrtc/modules/desktop_capture/desktop_capturer_differ_wrapper.cc |
diff --git a/webrtc/modules/desktop_capture/desktop_capturer_differ_wrapper.cc b/webrtc/modules/desktop_capture/desktop_capturer_differ_wrapper.cc |
index 9dbcd68e5b0bea1039c8455932b2451dc9e07e6a..f3a846c765afbb97c2a4b9d0d512051d75c1d243 100644 |
--- a/webrtc/modules/desktop_capture/desktop_capturer_differ_wrapper.cc |
+++ b/webrtc/modules/desktop_capture/desktop_capturer_differ_wrapper.cc |
@@ -61,7 +61,8 @@ void CompareRow(const uint8_t* old_buffer, |
const int height = bottom - top; |
const int block_count = (width - 1) / kBlockSize; |
const int last_block_width = width - block_count * kBlockSize; |
- RTC_DCHECK(last_block_width <= kBlockSize && last_block_width > 0); |
+ RTC_DCHECK_GT(last_block_width, 0); |
+ RTC_DCHECK_LE(last_block_width, kBlockSize); |
// The first block-column in a continuous dirty area in current block-row. |
int first_dirty_x_block = -1; |