diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-04-14 01:09:04 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-04-14 01:09:04 +0000 |
commit | d0073da16339c81df834ed16a1e69fb75b6fa3a7 (patch) | |
tree | 863ab62e25b1f2f7ed7a6ed922a4a0082df39ed6 | |
parent | 01c3b53b46c8fb90553c6bd15bf920499b8ea168 (diff) | |
parent | 647eca137a4a4c15f77395c0e00a019deef0f439 (diff) | |
download | gchips-d0073da16339c81df834ed16a1e69fb75b6fa3a7.tar.gz |
Snap for 8451755 from 647eca137a4a4c15f77395c0e00a019deef0f439 to tm-release
Change-Id: Ie410707cf36759ae48fa51b5e70787542e18f5b9
-rw-r--r-- | gralloc4/src/hidl_common/SharedMetadata.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/gralloc4/src/hidl_common/SharedMetadata.cpp b/gralloc4/src/hidl_common/SharedMetadata.cpp index 4247bd8..b5964f7 100644 --- a/gralloc4/src/hidl_common/SharedMetadata.cpp +++ b/gralloc4/src/hidl_common/SharedMetadata.cpp @@ -146,12 +146,6 @@ void get_smpte2094_40(const private_handle_t *hnd, std::optional<std::vector<uin android::status_t set_smpte2094_40(const private_handle_t *hnd, const std::optional<std::vector<uint8_t>> &smpte2094_40) { - if (!smpte2094_40.has_value() || smpte2094_40->size() == 0) - { - MALI_GRALLOC_LOGE("Empty SMPTE 2094-40 data"); - return android::BAD_VALUE; - } - auto *metadata = reinterpret_cast<shared_metadata *>(hnd->attr_base); const size_t size = smpte2094_40.has_value() ? smpte2094_40->size() : 0; if (size > metadata->smpte2094_40.capacity()) |