From 949d59088af9764229e5e2899ab4623edd50154b Mon Sep 17 00:00:00 2001 From: Dai_Haichun Date: Thu, 19 Dec 2024 19:24:21 +0800 Subject: [PATCH] [Encode] AV1 VDAQM block quality buffer fix Use pBlkQualityInfo from m_statusReportData by default if not nullptr --- .../codec/hal/enc/shared/statusreport/encode_status_report.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/media_softlet/agnostic/common/codec/hal/enc/shared/statusreport/encode_status_report.cpp b/media_softlet/agnostic/common/codec/hal/enc/shared/statusreport/encode_status_report.cpp index fe0677e13e..850dc73f51 100644 --- a/media_softlet/agnostic/common/codec/hal/enc/shared/statusreport/encode_status_report.cpp +++ b/media_softlet/agnostic/common/codec/hal/enc/shared/statusreport/encode_status_report.cpp @@ -356,7 +356,7 @@ namespace encode { statusReportData->pFrmStatsInfo = ((EncodeStatusReportData *)report)->pFrmStatsInfo; statusReportData->pBlkStatsInfo = ((EncodeStatusReportData *)report)->pBlkStatsInfo; - if (((EncodeStatusReportData *)report)->pBlkQualityInfo) + if (!statusReportData->pBlkQualityInfo) { statusReportData->pBlkQualityInfo = ((EncodeStatusReportData *)report)->pBlkQualityInfo; }