Skip to content

Commit

Permalink
Revert an aggressive check to prevent a crash
Browse files Browse the repository at this point in the history
  • Loading branch information
EddyVerbruggen committed Dec 7, 2016
1 parent 084d505 commit a35cee7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public PlanarYUVLuminanceSource(byte[] yuvData,
super(width, height);

if (left + width > dataWidth || top + height > dataHeight) {
throw new IllegalArgumentException("Crop rectangle does not fit within image data.");
// throw new IllegalArgumentException("Crop rectangle does not fit within image data.");
}

this.yuvData = yuvData;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,7 @@ public PlanarYUVLuminanceSource buildLuminanceSource(byte[] data, int width, int
}
}
int tmp = width;
//noinspection SuspiciousNameCombination
width = height;
height = tmp;
} else {
Expand Down

0 comments on commit a35cee7

Please sign in to comment.