Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b99a7f13 authored by Yin-Chia Yeh's avatar Yin-Chia Yeh
Browse files

ImageReader: fix missing pixel stride

Change-Id: Ie34cb51fee90e2d5624663fa23da4093fec435e2
parent 1ee1a0ae
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -574,6 +574,7 @@ static jint Image_imageGetPixelStride(JNIEnv* env, CpuConsumer::LockedBuffer* bu
        case HAL_PIXEL_FORMAT_Y8:
            // Single plane 8bpp data.
            ALOG_ASSERT(idx == 0, "Wrong index: %d", idx);
            pixelStride = 1;
            break;
        case HAL_PIXEL_FORMAT_YV12:
            pixelStride = 1;