commit | 1b47e27b2e730bdf4c8dd259edf2b8b8ccdbd32b | [log] [tgz] |
---|---|---|
author | Robert Shih <robertshih@google.com> | Tue Jul 30 21:44:43 2019 +0000 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Tue Jul 30 21:44:43 2019 +0000 |
tree | 41261e47e18f041c5c45c68ac5ab069660b5eb6c | |
parent | 089d89c4046b9b94e49d33cf2de48a4bde7da80a [diff] | |
parent | 91aa5a5c1a468c8b827342af336b5877c9b41c38 [diff] |
Merge "RESTRICT AUTOMERGE Fix off-by-1 in frame checksum calculation" into qt-dev
diff --git a/common/device-side/util/src/com/android/compatibility/common/util/MediaUtils.java b/common/device-side/util/src/com/android/compatibility/common/util/MediaUtils.java index be91308..c81f648 100644 --- a/common/device-side/util/src/com/android/compatibility/common/util/MediaUtils.java +++ b/common/device-side/util/src/com/android/compatibility/common/util/MediaUtils.java
@@ -1161,8 +1161,8 @@ int cropTop = crop.top; int cropBottom = crop.bottom; - int imageWidth = cropRight - cropLeft + 1; - int imageHeight = cropBottom - cropTop + 1; + int imageWidth = cropRight - cropLeft; + int imageHeight = cropBottom - cropTop; Image.Plane[] planes = image.getPlanes(); for (int i = 0; i < planes.length; ++i) {