[x265] [PATCH 1 of 3] TEncSearch: fix for gcc warning

deepthidevaki at multicorewareinc.com deepthidevaki at multicorewareinc.com
Fri Oct 4 12:12:25 CEST 2013


# HG changeset patch
# User Deepthi Devaki <deepthidevaki at multicorewareinc.com>
# Date 1380880387 -19800
# Node ID ae9c68edd6b24a419439b6f49f1ce8c031885f7e
# Parent  bf14f75b8cf99806c75cdc1a50b28b6cf265e3bd
TEncSearch: fix for gcc warning

diff -r bf14f75b8cf9 -r ae9c68edd6b2 source/Lib/TLibEncoder/TEncSearch.cpp
--- a/source/Lib/TLibEncoder/TEncSearch.cpp	Fri Oct 04 01:39:22 2013 -0500
+++ b/source/Lib/TLibEncoder/TEncSearch.cpp	Fri Oct 04 15:23:07 2013 +0530
@@ -2249,14 +2249,12 @@
 
     UInt mbBits[3] = { 1, 1, 0 };
     int refIdx[2] = { 0, 0 }; // If un-initialized, may cause SEGV in bi-directional prediction iterative stage.
-    int refIdxBidir[2];
+    int refIdxBidir[2] = { 0, 0 };
 
     UInt partAddr;
     int  roiWidth, roiHeight;
 
     PartSize partSize = cu->getPartitionSize(0);
-    int bestBiPRefIdxL1 = 0;
-    int bestBiPMvpL1 = 0;
     UInt lastMode = 0;
     int numPart = cu->getNumPartInter();
     int numPredDir = cu->getSlice()->isInterP() ? 1 : 2;
@@ -2331,8 +2329,6 @@
                     if (cu->getSlice()->getMvdL1ZeroFlag() && refList == 1 && biPDistTemp < bestBiPDist)
                     {
                         bestBiPDist = biPDistTemp;
-                        bestBiPMvpL1 = mvpIdx[refList][refIdxTmp];
-                        bestBiPRefIdxL1 = refIdxTmp;
                     }
 
                     bitsTemp += m_mvpIdxCost[mvpIdx[refList][refIdxTmp]][AMVP_MAX_NUM_CANDS];


More information about the x265-devel mailing list