From df0ba225fb96936147d2a64f718584756651bcfe Mon Sep 17 00:00:00 2001 From: Adrian Browne <adrian.browne@sony.com> Date: Wed, 22 Jul 2020 16:29:10 +0100 Subject: [PATCH] GCC-10 compiler fix for error when JVET_R0351_HIGH_BIT_DEPTH_ENABLED is enabled --- source/Lib/CommonLib/IntraPrediction.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/Lib/CommonLib/IntraPrediction.cpp b/source/Lib/CommonLib/IntraPrediction.cpp index 1e7aa1a10..04f27e609 100644 --- a/source/Lib/CommonLib/IntraPrediction.cpp +++ b/source/Lib/CommonLib/IntraPrediction.cpp @@ -303,11 +303,13 @@ void IntraPrediction::xPredIntraPlanar( const CPelBuf &pSrc, PelBuf &pDst ) const uint32_t offset = 1 << (log2W + log2H); // Get left and above reference column and row + CHECK(width > MAX_CU_SIZE, "width greater than limit"); for( int k = 0; k < width + 1; k++ ) { topRow[k] = pSrc.at( k + 1, 0 ); } + CHECK(height > MAX_CU_SIZE, "height greater than limit"); for( int k = 0; k < height + 1; k++ ) { leftColumn[k] = pSrc.at(k + 1, 1); -- GitLab