summaryrefslogtreecommitdiff
path: root/hwc3/impl/HalImpl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'hwc3/impl/HalImpl.cpp')
-rw-r--r--hwc3/impl/HalImpl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/hwc3/impl/HalImpl.cpp b/hwc3/impl/HalImpl.cpp
index 17fc4b2..eb82a70 100644
--- a/hwc3/impl/HalImpl.cpp
+++ b/hwc3/impl/HalImpl.cpp
@@ -461,9 +461,9 @@ int32_t HalImpl::getPerFrameMetadataKeys(int64_t display,
uint32_t numKeys = 0;
auto resManager = mDevice->mResourceManager;
if (resManager->hasHDR10PlusMPP()) {
- numKeys = HWC2_HDR10_PLUS_SEI;
+ numKeys = HWC2_HDR10_PLUS_SEI + 1;
} else {
- numKeys = HWC2_MAX_FRAME_AVERAGE_LIGHT_LEVEL;
+ numKeys = HWC2_MAX_FRAME_AVERAGE_LIGHT_LEVEL + 1;
}
for (uint32_t i = 0; i < numKeys; ++i) {
PerFrameMetadataKey key;