| commit | dc519093e8ece9e2f587151fea4fde5d67da08a5 | [log] [tgz] |
|---|---|---|
| author | Shuzhen Wang <shuzhenwang@google.com> | Fri Dec 02 12:29:04 2022 -0800 |
| committer | Shuzhen Wang <shuzhenwang@google.com> | Fri Dec 02 12:46:34 2022 -0800 |
| tree | 1c86c5c5e2b4f1e62b68ee5a0b436c52fe240c40 | |
| parent | 15d9586c88abdfa5ad0aa3c613f7256f0f3156bb [diff] |
Camera: memcpy Blob header rather than directly writing fields The CameraBlob embedded in the output bitstream may not be word aligned. Directly casting a byte* to a CameraBlob and assigning its field could cause alignment exception. Use memcpy from a CameraBlob struct instead. Test: Partner tested on 32-bit system Bug: 260045056 Change-Id: I34b6ba8ded458b2dc59638a50237b7a1f64bfb86