Showing the changes to codec/decoder/core/src/decoder_core.cpp (1 of 1 file). Show all
Unified · Split
| @@ -319,7 +319,7 @@ int32_t ExpandBsBuffer (PWelsDecoderContext pCtx, const int kiSrcLen) { · 318 unmodified lines | ||
| 319 | 319 | return ERR_INFO_OUT_OF_MEMORY; |
| 320 | 320 | |
| 321 | 321 | //Calculate and set the bs start and end position |
| 322 | − for (int32_t i = 0; i <= pCtx->pAccessUnitList->uiActualUnitsNum; i++) { | |
| 322 | + for (uint32_t i = 0; i <= pCtx->pAccessUnitList->uiActualUnitsNum; i++) { | |
| 323 | 323 | PBitStringAux pSliceBitsRead = &pCtx->pAccessUnitList->pNalUnitsList[i]->sNalData.sVclNal.sSliceBitsRead; |
| 324 | 324 | pSliceBitsRead->pStartBuf = pSliceBitsRead->pStartBuf - pCtx->sRawData.pHead + pNewBsBuff; |
| 325 | 325 | pSliceBitsRead->pEndBuf = pSliceBitsRead->pEndBuf - pCtx->sRawData.pHead + pNewBsBuff; |