commit | ac166cfea301a6599d013352f19bce8e533d8fec | [log] [tgz] |
---|---|---|
author | Jan Sebechlebsky <jsebechlebsky@google.com> | Tue Dec 12 13:09:11 2023 +0100 |
committer | Jan Sebechlebsky <jsebechlebsky@google.com> | Tue Dec 12 13:14:41 2023 +0100 |
tree | b18042d1e5df58846000d63c7d327945c3d607f9 | |
parent | c5181a5fb01411b9aeb624c2afc6f2934d871f57 [diff] |
Fix crash when there's unexpected non-YUV buffer input. The lockYCbCr returns NO_ERROR when called on non-YUV buffer, but all pointers in android_ycbcr are set to null. Check that the buffer has expected pixel format and fail early (and gracefully) when it doesn't. Bug: 301023410 Test: atest VirtualCameraTest (modified) Change-Id: I5af39c3d844392eac02f32ee55a50a2a2899466b