From ed8cd0a0adfd7a729a09669351ef6e78cecb5024 Mon Sep 17 00:00:00 2001 From: Kenneth Andersson <kenneth.r.andersson@ericsson.com> Date: Thu, 2 Mar 2023 13:59:06 +0100 Subject: [PATCH] Fix: Use size of reference picture instead of using picture size from PPS which can differ when RPR is used --- source/Lib/EncoderLib/EncGOP.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/Lib/EncoderLib/EncGOP.cpp b/source/Lib/EncoderLib/EncGOP.cpp index 8b5ddb647..c8b7fea1e 100644 --- a/source/Lib/EncoderLib/EncGOP.cpp +++ b/source/Lib/EncoderLib/EncGOP.cpp @@ -1957,8 +1957,8 @@ void EncGOP::xPicInitHashME( Picture *pic, const PPS *pps, PicList &rcListPic ) { Pel* picSrc = refPic->getOrigBuf().get(COMPONENT_Y).buf; ptrdiff_t stridePic = refPic->getOrigBuf().get(COMPONENT_Y).stride; - int picWidth = pps->getPicWidthInLumaSamples(); - int picHeight = pps->getPicHeightInLumaSamples(); + int picWidth = refPic->lwidth(); + int picHeight = refPic->lheight(); int blockSize = 4; int allNum = 0; int simpleNum = 0; -- GitLab