From 53912627ffb3e41f3e63c13799e6a80892b4087d Mon Sep 17 00:00:00 2001 From: Nikolai Shostak <nikolai.shostak@vicuesoft.com> Date: Wed, 17 Aug 2022 17:27:56 +0300 Subject: [PATCH] Check pointers to reference pictures --- source/Lib/CommonLib/InterPrediction.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/source/Lib/CommonLib/InterPrediction.cpp b/source/Lib/CommonLib/InterPrediction.cpp index 05b783eae..31faa3fc7 100644 --- a/source/Lib/CommonLib/InterPrediction.cpp +++ b/source/Lib/CommonLib/InterPrediction.cpp @@ -251,12 +251,10 @@ bool InterPrediction::xCheckIdenticalMotion( const PredictionUnit &pu ) { if( pu.refIdx[0] >= 0 && pu.refIdx[1] >= 0 ) { - int RefPOCL0 = slice.getRefPic( REF_PIC_LIST_0, pu.refIdx[0] )->getPOC(); - int RefPOCL1 = slice.getRefPic( REF_PIC_LIST_1, pu.refIdx[1] )->getPOC(); - int RefLayerId0 = slice.getRefPic( REF_PIC_LIST_0, pu.refIdx[0] )->layerId; - int RefLayerId1 = slice.getRefPic( REF_PIC_LIST_1, pu.refIdx[1] )->layerId; + const Picture *refPicL0 = slice.getRefPic(REF_PIC_LIST_0, pu.refIdx[0]); + const Picture *refPicL1 = slice.getRefPic(REF_PIC_LIST_1, pu.refIdx[1]); - if (RefPOCL0 == RefPOCL1 && RefLayerId0 == RefLayerId1) + if (refPicL0 == refPicL1) { if( !pu.cu->affine ) { -- GitLab