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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user