From e8e3efb53fa0d98dfdb63d74d21866011fb654f9 Mon Sep 17 00:00:00 2001 From: SteveZIntel Date: Fri, 15 Nov 2024 09:18:56 +0800 Subject: [PATCH] [Decode] MMC Surface Reference List refinement This patch to implement MMC Func CheckReferenceList to override basic class implement to prevent potential risk, and adding Zero Memory setting when initializing AV1 reference frame list to increase robustness. --- .../codec/hal/dec/av1/packet/decode_av1_picture_packet.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/media_softlet/agnostic/common/codec/hal/dec/av1/packet/decode_av1_picture_packet.cpp b/media_softlet/agnostic/common/codec/hal/dec/av1/packet/decode_av1_picture_packet.cpp index 0128eb904dd..25ffedd7721 100644 --- a/media_softlet/agnostic/common/codec/hal/dec/av1/packet/decode_av1_picture_packet.cpp +++ b/media_softlet/agnostic/common/codec/hal/dec/av1/packet/decode_av1_picture_packet.cpp @@ -116,6 +116,8 @@ namespace decode{ m_allocator = m_pipeline ->GetDecodeAllocator(); DECODE_CHK_NULL(m_allocator); + MOS_ZeroMemory(m_refSurface, sizeof(m_refSurface)); + return MOS_STATUS_SUCCESS; }