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

Commit aaa85cac authored by Dichen Zhang's avatar Dichen Zhang
Browse files

YuvToJpegEncoder: change Android::OK to JPEGR_NO_ERROR in JPEG/R encoding.

Bug: 313791883
Change-Id: I1afd802a6c3958fa369c03bfef6a7cb379795bc4
Test: build
parent b9fc6225
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -401,7 +401,7 @@ bool P010Yuv420ToJpegREncoder::encode(JNIEnv* env,
    if (int success = jpegREncoder.encodeJPEGR(&p010, &yuv420,
            hdrTransferFunction,
            &jpegR, jpegQuality,
            exif.length > 0 ? &exif : NULL); success != android::OK) {
            exif.length > 0 ? &exif : NULL); success != JPEGR_NO_ERROR) {
        ALOGW("Encode JPEG/R failed, error code: %d.", success);
        return false;
    }