History

fix issues found by coverage scan

Licai Guo committed 12 years ago

Commit a5337731 parent 6607f432 files · +2 −3Browse files

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

Unified · Split

codec/decoder/core/src/decoder_core.cpp+1−2
@@ -768,7 +768,6 @@ int32_t ParseSliceHeaderSyntaxs (PWelsDecoderContext pCtx, PBitStringAux pBs, co · 767 unmodified lines
768768 } else if (uiQualityId > BASE_QUALITY_ID) {
769769 WelsLog (pCtx, WELS_LOG_WARNING, "MGS not supported.\n");
770770 return GENERATE_ERROR_NO (ERR_LEVEL_SLICE_HEADER, ERR_INFO_UNSUPPORTED_MGS);
771− pSliceHeadExt->uiRefLayerDqId = pNalHeaderExt->uiLayerDqId - 1;
772771 } else {
773772 pSliceHeadExt->uiRefLayerDqId = (uint8_t) - 1;
774773 }
@@ -1775,7 +1774,7 @@ int32_t DecodeCurrentAccessUnit (PWelsDecoderContext pCtx, uint8_t** ppDst, int3 · 1000 unmodified lines
17751774 }
17761775 GetI4LumaIChromaAddrTable (pCtx->iDecBlockOffsetArray, pCtx->pDec->iLinesize[0], pCtx->pDec->iLinesize[1]);
17771776
1778− if (pNalCur->sNalHeaderExt.uiLayerDqId > kuiTargetLayerDqId) {
1777+ if ((pNalCur == NULL) || (pNalCur->sNalHeaderExt.uiLayerDqId > kuiTargetLayerDqId)) {
17791778 break; // Per formance it need not to decode the remaining bits any more due to given uiLayerDqId required, 9/2/2009
17801779 }
17811780

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