am 48811160: Merge "ImageReader: fix the 0 crop rect size issue" into klp-dev

* commit '4881116047f72f4406cb88cbb2f324c06f9a292f':
  ImageReader: fix the 0 crop rect size issue
This commit is contained in:
Zhijun He
2013-09-16 19:09:46 -07:00
committed by Android Git Automerger

View File

@@ -737,7 +737,7 @@ static jint ImageReader_imageSetup(JNIEnv* env, jobject thiz,
int outputHeight = buffer->height;
// Correct width/height when crop is set.
if (buffer->crop.isValid()) {
if (!buffer->crop.isEmpty()) {
outputWidth = buffer->crop.getWidth();
outputHeight = buffer->crop.getHeight();
}