diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-04-14 01:12:47 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-04-14 01:12:47 +0000 |
commit | 4aecec5036057a3857589e57e6b6be3f41cff475 (patch) | |
tree | 863ab62e25b1f2f7ed7a6ed922a4a0082df39ed6 | |
parent | cdbb7c0edc86f3c9ba97cb0cf06099a459686503 (diff) | |
parent | f2923260f48e8ca752a8e4040d3a438b96d7b263 (diff) | |
download | gchips-4aecec5036057a3857589e57e6b6be3f41cff475.tar.gz |
Snap for 8451885 from f2923260f48e8ca752a8e4040d3a438b96d7b263 to tm-d1-release
Change-Id: I8a07277939c4f5fd2748102aee0bf55b09b2499c
-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()) |