History

clean redundant checks in decoder

Licai Guo committed 12 years ago

Commit f589c581 parent 8492aac2 files · +0 −16Browse 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+0−7
@@ -475,12 +475,6 @@ int32_t ParseSliceHeaderSyntaxs (PWelsDecoderContext pCtx, PBitStringAux pBs, co · 474 unmodified lines
475475 return GENERATE_ERROR_NO (ERR_LEVEL_SLICE_HEADER, ERR_INFO_NO_PARAM_SETS);
476476 }
477477
478− if (pPps->iSpsId >= MAX_SPS_COUNT) {
479− WelsLog (pCtx, WELS_LOG_WARNING, "iSpsId out of range\n");
480− return GENERATE_ERROR_NO (ERR_LEVEL_SLICE_HEADER, ERR_INFO_SPS_ID_OVERFLOW);
481− }
482−
483− //add check SPS available here
484478 if (kbExtensionFlag) {
485479 pSubsetSps = &pCtx->sSubsetSpsBuffer[pPps->iSpsId];
486480 pSps = &pSubsetSps->sSps;
@@ -495,7 +489,6 @@ int32_t ParseSliceHeaderSyntaxs (PWelsDecoderContext pCtx, PBitStringAux pBs, co · 8 unmodified lines
495489 }
496490 pSps = &pCtx->sSpsBuffer[pPps->iSpsId];
497491 }
498− pCtx->pSps = pSps;
499492 pSliceHead->iPpsId = iPpsId;
500493 pSliceHead->iSpsId = pPps->iSpsId;
501494 pSliceHead->pPps = pPps;

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