ref: 9c5402837e889a18e8fbe04d5efc50f32d7cc68b
parent: 5a845f97d30401d0a41bfebf03934a586ebcd0a3
parent: bf9f25d2e810c8c8d9ff98bdccb8b1c2ac5285cd
author: Licai Guo <[email protected]>
date: Tue Apr 22 11:15:35 EDT 2014
Merge pull request #730 from huili2/rm_warn_dec_core remove warning from decoder_core.cpp
--- a/codec/decoder/core/src/decoder_core.cpp
+++ b/codec/decoder/core/src/decoder_core.cpp
@@ -1497,11 +1497,11 @@
pTmpLayerSps[i] = NULL;
}
// track the layer sps for the current au
- for(int i = pCurAu->uiStartPos; i <= pCurAu->uiEndPos; i++) {
+ for(unsigned int i = pCurAu->uiStartPos; i <= pCurAu->uiEndPos; i++) {
uint32_t uiDid = pCurAu->pNalUnitsList[i]->sNalHeaderExt.uiDependencyId;
pTmpLayerSps[uiDid] = pCurAu->pNalUnitsList[i]->sNalData.sVclNal.sSliceHeaderExt.sSliceHeader.pSps;
}
- int iMaxActiveLayer, iMaxCurrentLayer;
+ int iMaxActiveLayer = 0, iMaxCurrentLayer = 0;
for(int i = MAX_LAYER_NUM - 1; i >= 0; i--) {
if (pCtx->pActiveLayerSps[i] != NULL) {
iMaxActiveLayer = i;