Skip to content

Commit

Permalink
[Decode] kw issues fix for decode(CL#780834)
Browse files Browse the repository at this point in the history
kw issues fix for decode

Change-Id: Id4983a4bc308f9221abcdea88aa4e55a23af2489
  • Loading branch information
ZefuLI authored and Sherry-Lin committed Jul 6, 2018
1 parent 01aa1bb commit 4a85bb1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1672,8 +1672,10 @@ MOS_STATUS CodecHalDecodeScalability_ReadCSEngineIDReg(
MHW_MI_STORE_REGISTER_MEM_PARAMS StoreRegParams;
MhwMiInterface *pMiInterface;
MmioRegistersHcp *pMmioRegisters;
uint8_t ucPhaseIndex;
uint32_t dwOffset, dwCurrIndex, dwPreIndex;
uint8_t ucPhaseIndex = 0;
uint32_t dwOffset = 0;
uint32_t dwCurrIndex = 0;
uint32_t dwPreIndex = 0;
MOS_STATUS eStatus = MOS_STATUS_SUCCESS;

CODECHAL_DECODE_FUNCTION_ENTER;
Expand Down
4 changes: 2 additions & 2 deletions media_driver/agnostic/common/codec/hal/codechal_memdecomp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,8 @@ MOS_STATUS MediaMemDecompState::MemoryDecompress(
{
if (m_osInterface->osCpInterface->IsHardwareProtectionRequired((void **)&targetResource, 1, true))
{
uint32_t *kernelBase;
uint32_t kernelSize;
uint32_t *kernelBase = nullptr;
uint32_t kernelSize = 0;
m_osInterface->osCpInterface->GetTK(
&kernelBase,
&kernelSize,
Expand Down

0 comments on commit 4a85bb1

Please sign in to comment.