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

This commit is contained in:
Zhijun He
2013-09-17 02:07:21 +00:00
committed by Android (Google) Code Review

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();
}