Skip to content

Commit

Permalink
[CP] Fix uninitialized pointer field (#5846)
Browse files Browse the repository at this point in the history
Initialize itself.

Co-authored-by: Zhou, Tao <[email protected]>
  • Loading branch information
gfxVPLsdm and TaoZhou-intel authored Oct 12, 2023
1 parent 1c5a1d5 commit 29c52c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion _studio/mfx_lib/pxp/include/mfx_pxp_h264_nal_spl.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

}
Expand Down
2 changes: 1 addition & 1 deletion _studio/mfx_lib/pxp/include/mfx_pxp_h265_nal_spl.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

}
Expand Down

0 comments on commit 29c52c9

Please sign in to comment.