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

Commit 45073580 authored by Dichen Zhang's avatar Dichen Zhang Committed by Android (Google) Code Review
Browse files

Merge "YuvToJpegEncoder: change Android::OK to JPEGR_NO_ERROR in JPEG/R encoding." into main

parents f3e4351e aaa85cac
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;
    }