remove warning from decoder_core.cpp

This commit is contained in:
huili2 2014-04-21 23:20:30 -07:00
parent f5eb6d4fdc
commit bf9f25d2e8

View File

@ -1497,11 +1497,11 @@ static bool CheckNewSeqBeginAndUpdateActiveLayerSps(PWelsDecoderContext pCtx) {
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;