From 7b847728bf477cb46baf8ffa5d313b16f3978e66 Mon Sep 17 00:00:00 2001
From: Xiang Li <xlxiangli@google.com>
Date: Tue, 17 Oct 2023 01:13:49 -0700
Subject: [PATCH] Add parenthesis

---
 source/App/DecoderApp/DecApp.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/source/App/DecoderApp/DecApp.cpp b/source/App/DecoderApp/DecApp.cpp
index 1e92c5f34..fa0975b13 100644
--- a/source/App/DecoderApp/DecApp.cpp
+++ b/source/App/DecoderApp/DecApp.cpp
@@ -493,9 +493,9 @@ uint32_t DecApp::decode()
               auto confWindow = pps->getConformanceWindow();
               const auto sx = SPS::getWinUnitX(sps->getChromaFormatIdc());
               const auto sy = SPS::getWinUnitY(sps->getChromaFormatIdc());
-              const int picWidth = m_upscaledOutput == 2 ? sps->getMaxPicWidthInLumaSamples() : pps->getPicWidthInLumaSamples() 
+              const int picWidth = (m_upscaledOutput == 2 ? sps->getMaxPicWidthInLumaSamples() : pps->getPicWidthInLumaSamples()) 
                 - (confWindow.getWindowLeftOffset() + confWindow.getWindowRightOffset()) * sx;
-              const int picHeight = m_upscaledOutput == 2 ? sps->getMaxPicHeightInLumaSamples() : pps->getPicHeightInLumaSamples() 
+              const int picHeight = (m_upscaledOutput == 2 ? sps->getMaxPicHeightInLumaSamples() : pps->getPicHeightInLumaSamples())
                 - (confWindow.getWindowTopOffset() + confWindow.getWindowBottomOffset()) * sy;
               m_cVideoIOYuvReconFile[nalu.m_nuhLayerId].setOutputY4mInfo(
                 picWidth, picHeight, frameRate, layerOutputBitDepth[ChannelType::LUMA], sps->getChromaFormatIdc(),
-- 
GitLab