From 99333a03c19d7e67ed7e4ed6591e981f0fcbce2e Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Wed, 26 Apr 2023 15:58:09 +1000 Subject: [PATCH] [host] nvfbc: fix failure to store last hdr state --- host/platform/Windows/capture/NVFBC/src/nvfbc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/host/platform/Windows/capture/NVFBC/src/nvfbc.c b/host/platform/Windows/capture/NVFBC/src/nvfbc.c index 09eba33f..7c320e6d 100644 --- a/host/platform/Windows/capture/NVFBC/src/nvfbc.c +++ b/host/platform/Windows/capture/NVFBC/src/nvfbc.c @@ -714,6 +714,8 @@ static CaptureResult nvfbc_waitFrame(CaptureFrame * frame, this->grabWidth = this->grabInfo.dwWidth; this->grabHeight = this->grabInfo.dwHeight; this->grabStride = this->grabInfo.dwBufferWidth; + this->isHDR = this->grabInfo.bIsHDR; + // Round up stride in IVSHMEM to avoid issues with dmabuf import. this->shmStride = ALIGN_PAD(this->grabStride, 32);