Skip to content

Commit

Permalink
[Decode] Correct condition check when dump avc mv buffer
Browse files Browse the repository at this point in the history
Fixes: intel#1791
Signed-off-by: Xu, Zhengguo <[email protected]>
  • Loading branch information
Jexu committed Apr 16, 2024
1 parent 969c0c4 commit 3c25138
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ namespace decode{
{
if (m_avcBasicFeature->m_refFrames.m_avcPicIdx[n].bValid)
{
if (&avcDirectmodeParams.presAvcDmvBuffers[n+1] != nullptr)
if (avcDirectmodeParams.presAvcDmvBuffers[n+1] != nullptr)
{
std::string mvBufDumpName = "_DEC_Ref_MV_" + std::to_string(n);
DECODE_CHK_STATUS(debugInterface->DumpBuffer(
Expand All @@ -601,7 +601,7 @@ namespace decode{
}
}

if (&avcDirectmodeParams.presAvcDmvBuffers[0] != nullptr)
if (avcDirectmodeParams.presAvcDmvBuffers[0] != nullptr)
{
DECODE_CHK_STATUS(debugInterface->DumpBuffer(
&avcDirectmodeParams.presAvcDmvBuffers[0],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ MOS_STATUS AvcDecodePicPkt::DumpResources(uint32_t mvBufferSize) const
CodechalDbgAttr::attrDecodeReferenceSurfaces,
refSurfName.c_str()));

if (&mvParam.presAvcDmvBuffers[n+1] != nullptr)
if (mvParam.presAvcDmvBuffers[n+1] != nullptr)
{
std::string mvBufDumpName = "_DEC_Ref_MV_" + std::to_string(n);
DECODE_CHK_STATUS(debugInterface->DumpBuffer(
Expand All @@ -658,7 +658,7 @@ MOS_STATUS AvcDecodePicPkt::DumpResources(uint32_t mvBufferSize) const
}
}

if (&mvParam.presAvcDmvBuffers[0] != nullptr)
if (mvParam.presAvcDmvBuffers[0] != nullptr)
{
DECODE_CHK_STATUS(debugInterface->DumpBuffer(
&mvParam.presAvcDmvBuffers[0],
Expand Down Expand Up @@ -699,4 +699,4 @@ MOS_STATUS AvcDecodePicPkt::SetSurfaceMmcState() const
return MOS_STATUS_SUCCESS;
}

} // namespace decode
} // namespace decode

0 comments on commit 3c25138

Please sign in to comment.