From 93c375f5382ff34ac1f0315a69688fee24c770e4 Mon Sep 17 00:00:00 2001
From: xlxiangli <xlxiangli@google.com>
Date: Mon, 6 Nov 2023 06:27:09 +0000
Subject: [PATCH] Fix gcc 13.2 compiling issues

---
 source/Lib/CommonLib/InterPrediction.cpp | 4 ++--
 source/Lib/CommonLib/TypeDef.h           | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/source/Lib/CommonLib/InterPrediction.cpp b/source/Lib/CommonLib/InterPrediction.cpp
index 46a0e09fb..fe0bdde30 100644
--- a/source/Lib/CommonLib/InterPrediction.cpp
+++ b/source/Lib/CommonLib/InterPrediction.cpp
@@ -1,4 +1,4 @@
-/* The copyright in this software is being made available under the BSD
+/* The copyright in this software is being made available under the BSD
  * License, included below. This software may be subject to other third party
  * and contributor rights, including patent rights, and no such rights are
  * granted under this license.
@@ -1138,7 +1138,7 @@ bool InterPrediction::xGetSubPuGroupArea2D(PredictionUnit& pu, PredictionUnit& s
   const int maxSubPuHeight = pu.lheight() - (subPuStartPos.y - pu.lumaPos().y);
   const int subPuDerivedStartIdx = ((subPuStartPos.x - pu.lumaPos().x) >> BDOF_SUBPU_DIM_LOG2) + ((subPuStartPos.y - pu.lumaPos().y) >> BDOF_SUBPU_DIM_LOG2) * BDOF_SUBPU_STRIDE;
   bool incrR = true, incrB = true, incrBR = true;
-  int subPuDerivedRightDirIdx, subPuDerivedBottomDirIdx;
+  int subPuDerivedRightDirIdx = 0, subPuDerivedBottomDirIdx = 0;
   while ((subPuWidth > preWidth) || (subPuHeight > preHeight))
   {
     preWidth = subPuWidth;
diff --git a/source/Lib/CommonLib/TypeDef.h b/source/Lib/CommonLib/TypeDef.h
index 40fde5dde..7d8066c69 100644
--- a/source/Lib/CommonLib/TypeDef.h
+++ b/source/Lib/CommonLib/TypeDef.h
@@ -50,7 +50,7 @@
 #include <cstring>
 #include <assert.h>
 #include <cassert>
-
+#include <cstdint>
 
 #define BASE_ENCODER                                      1
 #define BASE_NORMATIVE                                    1
-- 
GitLab