[host] return the compressed frame size in the pitch field
This commit is contained in:
1 parent
03622f61b0
commit
b5f2092e9c
2 files changed
+6
-3
No files matched your search
@@ -885,8 +885,11 @@ GrabStatus Capture::DXGI::GrabFrameH264(FrameInfo & frame)
|
||||
buffer->Lock(&pixels, &maxLen, &curLen);
|
||||
m_memcpy.Copy(frame.buffer, pixels, curLen);
|
||||
buffer->Unlock();
|
||||
|
||||
SafeRelease(&buffer);
|
||||
|
||||
frame.stride = 0;
|
||||
frame.pitch = curLen;
|
||||
|
||||
TRACE_END;
|
||||
return GRAB_STATUS_OK;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user