mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
d3d12: Initialize d3d12_video_encoder_bitstream member m_uiOffset.
Fix defect reported by Coverity Scan.
Uninitialized scalar field (UNINIT_CTOR)
uninit_member: Non-static class member m_uiOffset is not initialized in
this constructor nor in any functions that it calls.
Fixes: b171a6baa2 ("d3d12: Add video encode implementation of pipe_video_codec")
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Sil Vilerino <sivileri@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16682>
This commit is contained in:
parent
dfedeccc13
commit
f38bc633f7
1 changed files with 1 additions and 0 deletions
|
|
@ -28,6 +28,7 @@ d3d12_video_encoder_bitstream::d3d12_video_encoder_bitstream()
|
|||
{
|
||||
m_pBitsBuffer = nullptr;
|
||||
m_uiBitsBufferSize = 0;
|
||||
m_uiOffset = 0;
|
||||
m_iBitsToGo = 32;
|
||||
m_uintEncBuffer = 0;
|
||||
m_bExternalBuffer = false;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue