History

Merge pull request #730 from huili2/rm_warn_dec_core

remove warning from decoder_core.cpp

Licai Guo committed 12 years ago

Commit 9c540282 parents 5a845f9 bf9f25d1 file · +2 −2Browse files

Showing the changes to codec/decoder/core/src/decoder_core.cpp (1 of 1 file). Show all

Unified · Split

codec/decoder/core/src/decoder_core.cpp+2−2
@@ -1497,11 +1497,11 @@ static bool CheckNewSeqBeginAndUpdateActiveLayerSps(PWelsDecoderContext pCtx) { · 1496 unmodified lines
14971497 pTmpLayerSps[i] = NULL;
14981498 }
14991499 // track the layer sps for the current au
1500− for(int i = pCurAu->uiStartPos; i <= pCurAu->uiEndPos; i++) {
1500+ for(unsigned int i = pCurAu->uiStartPos; i <= pCurAu->uiEndPos; i++) {
15011501 uint32_t uiDid = pCurAu->pNalUnitsList[i]->sNalHeaderExt.uiDependencyId;
15021502 pTmpLayerSps[uiDid] = pCurAu->pNalUnitsList[i]->sNalData.sVclNal.sSliceHeaderExt.sSliceHeader.pSps;
15031503 }
1504− int iMaxActiveLayer, iMaxCurrentLayer;
1504+ int iMaxActiveLayer = 0, iMaxCurrentLayer = 0;
15051505 for(int i = MAX_LAYER_NUM - 1; i >= 0; i--) {
15061506 if (pCtx->pActiveLayerSps[i] != NULL) {
15071507 iMaxActiveLayer = i;

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