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:
Vinson Lee 2022-05-23 17:02:20 -07:00 committed by Marge Bot
parent dfedeccc13
commit f38bc633f7

View file

@ -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;