<div dir="ltr">From 44dcf54c016cc45f7f0da3c6ff30f2ee57373335 Mon Sep 17 00:00:00 2001<br>From: Kirithika <<a href="mailto:kirithika@multicorewareinc.com">kirithika@multicorewareinc.com</a>><br>Date: Tue, 20 Dec 2022 11:29:27 +0530<br>Subject: [PATCH] Cleanup unused variables and fix build warnings<br><br>---<br> source/common/param.cpp        | 2 +-<br> source/encoder/ratecontrol.cpp | 2 --<br> 2 files changed, 1 insertion(+), 3 deletions(-)<br><br>diff --git a/source/common/param.cpp b/source/common/param.cpp<br>index eeda40eb5..03c3beb70 100755<br>--- a/source/common/param.cpp<br>+++ b/source/common/param.cpp<br>@@ -824,7 +824,7 @@ int x265_scenecut_aware_qp_param_parse(x265_param* p, const char* name, const ch<br>                     p->bwdNonRefQpDelta[i] = p->bwdNonRefQpDelta[i - 1] - (0.15 * p->bwdNonRefQpDelta[i - 1]);<br>                 }<br>             }<br>-            else if (36 == sscanf(value, "%d,%lf,%lf,%d,%lf,%lf,%d,%lf,%lf,%d,%lf,%lf,%d,%lf,%lf,%d,%lf,%lf"<br>+            else if (36 == sscanf(value, "%d,%lf,%lf,%d,%lf,%lf,%d,%lf,%lf,%d,%lf,%lf,%d,%lf,%lf,%d,%lf,%lf,%d,%lf,%lf,%d,%lf,%lf,%d,%lf,%lf,%d,%lf,%lf,%d,%lf,%lf,%d,%lf,%lf"<br>                 , &window1[0], &refQpDelta1[0], &nonRefQpDelta1[0], &window1[1], &refQpDelta1[1], &nonRefQpDelta1[1]<br>                 , &window1[2], &refQpDelta1[2], &nonRefQpDelta1[2], &window1[3], &refQpDelta1[3], &nonRefQpDelta1[3]<br>                 , &window1[4], &refQpDelta1[4], &nonRefQpDelta1[4], &window1[5], &refQpDelta1[5], &nonRefQpDelta1[5]<br>diff --git a/source/encoder/ratecontrol.cpp b/source/encoder/ratecontrol.cpp<br>index 17d8c1e0d..b645676c8 100644<br>--- a/source/encoder/ratecontrol.cpp<br>+++ b/source/encoder/ratecontrol.cpp<br>@@ -3347,7 +3347,6 @@ double RateControl::forwardMasking(Frame* curFrame, double q)<br>     uint32_t maxWindowSize = uint32_t((m_param->fwdMaxScenecutWindow / 1000.0) * (m_param->fpsNum / m_param->fpsDenom) + 0.5);<br>     uint32_t windowSize[6], prevWindow = 0;<br>     int lastScenecut = m_top->m_rateControl->m_lastScenecut;<br>-    int lastIFrame = m_top->m_rateControl->m_lastScenecutAwareIFrame;<br> <br>     double fwdRefQpDelta[6], fwdNonRefQpDelta[6], sliceTypeDelta[6];<br>     for (int i = 0; i < 6; i++)<br>@@ -3424,7 +3423,6 @@ double RateControl::forwardMasking(Frame* curFrame, double q)<br> double RateControl::backwardMasking(Frame* curFrame, double q)<br> {<br>     double qp = x265_qScale2qp(q);<br>-    uint32_t maxWindowSize = uint32_t((m_param->bwdMaxScenecutWindow / 1000.0) * (m_param->fpsNum / m_param->fpsDenom) + 0.5);<br>     uint32_t windowSize[6], prevWindow = 0;<br>     int lastScenecut = m_top->m_rateControl->m_lastScenecut;<br> <br>-- <br>2.28.0.windows.1<br><br><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><i>Thanks,</i><div><i>Kirithika</i></div></div></div></div></div>