diff --git a/media_driver/media_softlet/agnostic/Xe_M/Xe_M_base/codec/hal/dec/avc/packet/decode_avc_picture_xe_m_base_packet.cpp b/media_driver/media_softlet/agnostic/Xe_M/Xe_M_base/codec/hal/dec/avc/packet/decode_avc_picture_xe_m_base_packet.cpp index bd0611f6fae..733c4237d34 100644 --- a/media_driver/media_softlet/agnostic/Xe_M/Xe_M_base/codec/hal/dec/avc/packet/decode_avc_picture_xe_m_base_packet.cpp +++ b/media_driver/media_softlet/agnostic/Xe_M/Xe_M_base/codec/hal/dec/avc/packet/decode_avc_picture_xe_m_base_packet.cpp @@ -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( @@ -601,7 +601,7 @@ namespace decode{ } } - if (&avcDirectmodeParams.presAvcDmvBuffers[0] != nullptr) + if (avcDirectmodeParams.presAvcDmvBuffers[0] != nullptr) { DECODE_CHK_STATUS(debugInterface->DumpBuffer( &avcDirectmodeParams.presAvcDmvBuffers[0], diff --git a/media_softlet/agnostic/common/codec/hal/dec/avc/packet/decode_avc_picture_packet.cpp b/media_softlet/agnostic/common/codec/hal/dec/avc/packet/decode_avc_picture_packet.cpp index 88ed0bb8329..4bc9cd6e2dc 100644 --- a/media_softlet/agnostic/common/codec/hal/dec/avc/packet/decode_avc_picture_packet.cpp +++ b/media_softlet/agnostic/common/codec/hal/dec/avc/packet/decode_avc_picture_packet.cpp @@ -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( @@ -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], @@ -699,4 +699,4 @@ MOS_STATUS AvcDecodePicPkt::SetSurfaceMmcState() const return MOS_STATUS_SUCCESS; } -} // namespace decode \ No newline at end of file +} // namespace decode