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

Commit 15a2a15c authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 8693414 from 5b5524ad to tm-qpr1-release

Change-Id: Ie44babace2bc66148b5dd903dd2dac6c63292827
parents 9f747e43 5b5524ad
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -379,9 +379,11 @@ status_t Camera3OutputStream::fixUpHidlJpegBlobHeader(ANativeWindowBuffer* anwBu
    }

    // Fill in JPEG header
    CameraBlob *aidlBlobHeader = reinterpret_cast<CameraBlob *>(aidlHeaderStart);
    aidlBlobHeader->blobId = blobId;
    aidlBlobHeader->blobSizeBytes = blobSizeBytes;
    CameraBlob aidlHeader = {
            .blobId = blobId,
            .blobSizeBytes = static_cast<int32_t>(blobSizeBytes)
    };
    memcpy(aidlHeaderStart, &aidlHeader, sizeof(CameraBlob));
    graphicBuffer->unlock();
    return OK;
}