From 29c52c9a09de313375dd82fb0b9b07b23f143304 Mon Sep 17 00:00:00 2001 From: gfxVPLsdm Date: Thu, 12 Oct 2023 13:08:19 +0800 Subject: [PATCH] [CP] Fix uninitialized pointer field (#5846) Initialize itself. Co-authored-by: Zhou, Tao --- _studio/mfx_lib/pxp/include/mfx_pxp_h264_nal_spl.h | 2 +- _studio/mfx_lib/pxp/include/mfx_pxp_h265_nal_spl.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/_studio/mfx_lib/pxp/include/mfx_pxp_h264_nal_spl.h b/_studio/mfx_lib/pxp/include/mfx_pxp_h264_nal_spl.h index 1e3d71ec6c..8ba987e334 100644 --- a/_studio/mfx_lib/pxp/include/mfx_pxp_h264_nal_spl.h +++ b/_studio/mfx_lib/pxp/include/mfx_pxp_h264_nal_spl.h @@ -39,7 +39,7 @@ namespace UMC Status MergeEncryptedNalUnit(NalUnit* nalUnit, MediaData* pSource); void SetVA(VideoAccelerator* va) { m_va = va; } private: - VideoAccelerator* m_va; + VideoAccelerator* m_va = nullptr; }; } diff --git a/_studio/mfx_lib/pxp/include/mfx_pxp_h265_nal_spl.h b/_studio/mfx_lib/pxp/include/mfx_pxp_h265_nal_spl.h index 9533bd41c2..c252862f4c 100644 --- a/_studio/mfx_lib/pxp/include/mfx_pxp_h265_nal_spl.h +++ b/_studio/mfx_lib/pxp/include/mfx_pxp_h265_nal_spl.h @@ -39,7 +39,7 @@ namespace UMC_HEVC_DECODER UMC::Status MergeEncryptedNalUnit(UMC::MediaDataEx* nalUnit, UMC::MediaData* pSource); void SetVA(UMC::VideoAccelerator* va) { m_va = va; } private: - UMC::VideoAccelerator* m_va; + UMC::VideoAccelerator* m_va = nullptr; }; }