From 524b5349d51f4510c97619f3a8578412ba771478 Mon Sep 17 00:00:00 2001
From: deluxan <santiago.de.luxan@hhi.fraunhofer.de>
Date: Mon, 11 Feb 2019 16:32:31 +0100
Subject: [PATCH] Fix of the size of extendRefList, so that is always equal to
 the one of uiRdModeList.

---
 source/Lib/EncoderLib/IntraSearch.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/source/Lib/EncoderLib/IntraSearch.cpp b/source/Lib/EncoderLib/IntraSearch.cpp
index 96086c360..a78c192e3 100644
--- a/source/Lib/EncoderLib/IntraSearch.cpp
+++ b/source/Lib/EncoderLib/IntraSearch.cpp
@@ -777,6 +777,7 @@ void IntraSearch::estIntraPredLumaQT( CodingUnit &cu, Partitioner &partitioner )
       {
         uiRdModeList.resize( std::min<size_t>( uiRdModeList.size(), 2 ) );
 #if JVET_M0102_INTRA_SUBPARTITIONS
+        extendRefList.resize( std::min<size_t>( extendRefList.size(), 2 ) ); 
         if( nOptionsForISP > 1 )
         {
           m_rdModeListWithoutMrlHor.resize( std::min<size_t>( m_rdModeListWithoutMrlHor.size(), 2 ) );
@@ -788,6 +789,7 @@ void IntraSearch::estIntraPredLumaQT( CodingUnit &cu, Partitioner &partitioner )
       {
         uiRdModeList.resize( std::min<size_t>( uiRdModeList.size(), 1 ) );
 #if JVET_M0102_INTRA_SUBPARTITIONS
+        extendRefList.resize( std::min<size_t>( extendRefList.size(), 1 ) );
         if( nOptionsForISP > 1 )
         {
           m_rdModeListWithoutMrlHor.resize( std::min<size_t>( m_rdModeListWithoutMrlHor.size(), 1 ) );
-- 
GitLab