changeset 4193:ae9c68edd6b2

TEncSearch: fix for gcc warning
author Deepthi Devaki <deepthidevaki@multicorewareinc.com>
date Fri, 04 Oct 2013 15:23:07 +0530
parents bf14f75b8cf9
children 5b987ed0a557
files source/Lib/TLibEncoder/TEncSearch.cpp
diffstat 1 files changed, 1 insertions(+-), 5 deletions(-) [+]
line wrap: on
line diff
--- 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 @@ void TEncSearch::predInterSearch(TComDat
 
     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 @@ void TEncSearch::predInterSearch(TComDat
                     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];