Index: webrtc/media/base/videoadapter.cc |
diff --git a/webrtc/media/base/videoadapter.cc b/webrtc/media/base/videoadapter.cc |
index 589be63c8021351e9d690f611b12705e9ca088e4..522d175426bad752dc94134183c2c2de9af0c84b 100644 |
--- a/webrtc/media/base/videoadapter.cc |
+++ b/webrtc/media/base/videoadapter.cc |
@@ -218,7 +218,7 @@ bool VideoAdapter::AdaptFrameResolution(int in_width, |
// Calculate final output size. |
*out_width = *cropped_width / scale.denominator * scale.numerator; |
*out_height = *cropped_height / scale.denominator * scale.numerator; |
- RTC_DCHECK_EQ(0, *out_height % required_resolution_alignment_); |
+ RTC_DCHECK_EQ(0, *out_width % required_resolution_alignment_); |
RTC_DCHECK_EQ(0, *out_height % required_resolution_alignment_); |
++frames_out_; |