From b0c30c41398ef7a184d8bd29c618609844fd1d50 Mon Sep 17 00:00:00 2001 From: WalterBai Date: Mon, 16 Oct 2023 19:48:32 +0800 Subject: [PATCH] [Encode] Clean noises in driver log and fix a memory leak Clean noises in driver log and fix a memory leak in release internal driver. --- .../codec/hal/enc/hevc/packet/encode_hevc_vdenc_packet.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/media_softlet/agnostic/common/codec/hal/enc/hevc/packet/encode_hevc_vdenc_packet.cpp b/media_softlet/agnostic/common/codec/hal/enc/hevc/packet/encode_hevc_vdenc_packet.cpp index 2ce1db8e14d..fd1062cb623 100644 --- a/media_softlet/agnostic/common/codec/hal/enc/hevc/packet/encode_hevc_vdenc_packet.cpp +++ b/media_softlet/agnostic/common/codec/hal/enc/hevc/packet/encode_hevc_vdenc_packet.cpp @@ -1558,8 +1558,7 @@ MOS_STATUS HevcVdencPkt::AddAllCmds_HCP_PAK_INSERT_OBJECT_BRC(PMOS_COMMAND_BUFFE #if USE_CODECHAL_DEBUG_TOOL && _ENCODE_RESERVED CODECHAL_DEBUG_TOOL( CodechalDebugInterface *debugInterface = m_pipeline->GetDebugInterface(); - ENCODE_CHK_NULL_RETURN(debugInterface); - if (debugInterface->DumpIsEnabled(CodechalDbgAttr::attrDumpEncodePar)) { + if (debugInterface && debugInterface->DumpIsEnabled(CodechalDbgAttr::attrDumpEncodePar)) { m_hevcParDump->DumpParFile(); }) #endif