History

Fix compiler warnings and remove dead code

Fix several -Werror=unused-variable and -Werror=unused-but-set-variable and removed dead code found with this warnings

Andoni Morales Alastruey committed 12 years ago

Commit ae60f1b1 parent 703c69d10 files · +1 −79Browse files

Showing the changes to codec/encoder/core/src/encoder_ext.cpp (1 of 10 files). Show all

Unified · Split

codec/encoder/core/src/encoder_ext.cpp+0−17
@@ -78,11 +78,6 @@ int32_t ParamValidation (SWelsSvcCodingParam* pCfg) { · 77 unmodified lines
7878 float fMaxFrameRate = 0.0f;
7979 const float fEpsn = 0.000001f;
8080 int32_t i = 0;
81− int32_t iLastSpatialWidth = 0;
82− int32_t iLastSpatialHeight = 0;
83− float fLastFrameRateIn = 0.0f;
84− float fLastFrameRateOut = 0.0f;
85− SDLayerParam* pLastSpatialParam = NULL;
8681
8782 assert (pCfg != NULL);
8883
@@ -118,16 +113,6 @@ int32_t ParamValidation (SWelsSvcCodingParam* pCfg) { · 29 unmodified lines
118113 pCfg->fMaxFrameRate = fMaxFrameRate;
119114 }
120115
121− for (i = 0; i < pCfg->iSpatialLayerNum; ++ i) {
122− SDLayerParam* fDlp = &pCfg->sDependencyLayers[i];
123−
124− pLastSpatialParam = fDlp;
125− iLastSpatialWidth = fDlp->iFrameWidth;
126− iLastSpatialHeight = fDlp->iFrameHeight;
127− fLastFrameRateIn = fDlp->fInputFrameRate;
128− fLastFrameRateOut = fDlp->fOutputFrameRate;
129− }
130−
131116 return 0;
132117 }
133118
@@ -680,7 +665,6 @@ static inline int32_t InitDqLayers (sWelsEncCtx** ppCtx) { · 546 unmodified lines
680665 SSubsetSps* pSubsetSps = NULL;
681666 SWelsPPS* pPps = NULL;
682667 CMemoryAlign* pMa = NULL;
683− SStrideTables* pStrideTab = NULL;
684668 int32_t iDlayerCount = 0;
685669 int32_t iDlayerIndex = 0;
686670 uint32_t iSpsId = 0;
@@ -696,7 +680,6 @@ static inline int32_t InitDqLayers (sWelsEncCtx** ppCtx) { · 9 unmodified lines
696680 iDlayerCount = pParam->iSpatialLayerNum;
697681 iNumRef = pParam->iNumRefFrame;
698682 // highest_layers_in_temporal = 1 + WELS_MAX(pParam->iDecompStages, 1);
699− pStrideTab = (*ppCtx)->pStrideTab;
700683
701684 iDlayerIndex = 0;
702685 while (iDlayerIndex < iDlayerCount) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t