From 0e5e9d969f9014d6ee7e276fe56586c49eca739b Mon Sep 17 00:00:00 2001
From: Gordon CLARE <gclare@b-com.local>
Date: Mon, 9 Sep 2019 12:47:43 +0200
Subject: [PATCH] ticket512 - qp=2 ld singletree palette crash

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

diff --git a/source/Lib/EncoderLib/IntraSearch.cpp b/source/Lib/EncoderLib/IntraSearch.cpp
index be5453b933..b9047f9748 100644
--- a/source/Lib/EncoderLib/IntraSearch.cpp
+++ b/source/Lib/EncoderLib/IntraSearch.cpp
@@ -1794,7 +1794,7 @@ void IntraSearch::PLTSearch(CodingStructure &cs, Partitioner& partitioner, Compo
   //calculate palette index
   preCalcPLTIndex(cs, partitioner, compBegin, numComp);
   //derive run
-  uint64_t bits = MAX_UINT;
+  uint64_t bits = MAX_UINT64;
   deriveRunAndCalcBits(cs, partitioner, compBegin, numComp, PLT_SCAN_HORTRAV, bits);
   if ((cu.curPLTSize[compBegin] + cu.useEscape[compBegin]) > 1)
   {
-- 
GitLab