commit | 2b64421fef62202b472aa3e4499d26953621a1c7 | [log] [tgz] |
---|---|---|
author | Clément Julliard <clju@google.com> | Wed Sep 09 14:15:29 2020 +0000 |
committer | Clément Julliard <clju@google.com> | Wed Oct 14 08:13:39 2020 +0000 |
tree | ca7b396f9dd487dcba821ea9cc8f236f5e7cc6ef | |
parent | 7518e2919646ac49f1f66792feba4a843e2c841f [diff] |
Add preconditions for YUV formats. Width and height need to be even and > 0 for the calculated dataSize to be valid. Test: test app crashes with a meaningful error message instead of an allocation failure. Bug: 163175419 Change-Id: Ibcce3e62f89b7d19d64e8a5efe792b35af6ab401