Index: webrtc/media/base/videoadapter.cc |
diff --git a/webrtc/media/base/videoadapter.cc b/webrtc/media/base/videoadapter.cc |
index 660df8ad673e8f40668d8f150722cb21082073ee..589be63c8021351e9d690f611b12705e9ca088e4 100644 |
--- a/webrtc/media/base/videoadapter.cc |
+++ b/webrtc/media/base/videoadapter.cc |
@@ -60,7 +60,7 @@ Fraction FindScale(int input_pixels, int target_pixels, int max_pixels) { |
// The minimum (absolute) difference between the number of output pixels and |
// the target pixel count. |
int min_pixel_diff = std::numeric_limits<int>::max(); |
- if (input_pixels < max_pixels) { |
+ if (input_pixels <= max_pixels) { |
// Start condition for 1/1 case, if it is less than max. |
min_pixel_diff = std::abs(input_pixels - target_pixels); |
} |