History

add freely setoption for EC_idc and UT

huili2 committed 12 years ago

Commit f6fb4591 parent 25b723c4 files · +655 −9Browse files

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

Unified · Split

codec/decoder/core/src/decoder_core.cpp+5−1
@@ -1657,7 +1657,6 @@ int32_t ConstructAccessUnit (PWelsDecoderContext pCtx, uint8_t** ppDst, SBufferI · 1656 unmodified lines
16571657 WelsLog (& (pCtx->sLogCtx), WELS_LOG_WARNING, "sync picture resolution ext failed, the error is %d", iErr);
16581658 return iErr;
16591659 }
1660− InitErrorCon (pCtx); //Do EC initialization here, for sequence start
16611660 }
16621661
16631662
@@ -1969,6 +1968,8 @@ int32_t DecodeCurrentAccessUnit (PWelsDecoderContext pCtx, uint8_t** ppDst, SBuf · 305 unmodified lines
19691968 if (NeedErrorCon (pCtx)) {
19701969 ImplementErrorCon (pCtx);
19711970 pCtx->iTotalNumMbRec = pCtx->pSps->iMbWidth * pCtx->pSps->iMbHeight;
1971+ pCtx->pDec->iSpsId = pCtx->pSps->iSpsId;
1972+ pCtx->pDec->iPpsId = pCtx->pPps->iPpsId;
19721973 }
19731974 }
19741975
@@ -2012,6 +2013,9 @@ bool CheckAndFinishLastPic (PWelsDecoderContext pCtx, uint8_t** ppDst, SBufferIn · 37 unmodified lines
20122013 if (pCtx->eErrorConMethod != ERROR_CON_DISABLE) {
20132014 ImplementErrorCon (pCtx);
20142015 pCtx->iTotalNumMbRec = pCtx->pSps->iMbWidth * pCtx->pSps->iMbHeight;
2016+ pCtx->pDec->iSpsId = pCtx->pSps->iSpsId;
2017+ pCtx->pDec->iPpsId = pCtx->pPps->iPpsId;
2018+
20152019 DecodeFrameConstruction (pCtx, ppDst, pDstInfo);
20162020 if (pCtx->sLastNalHdrExt.sNalUnitHeader.uiNalRefIdc > 0) {
20172021 pCtx->pPreviousDecodedPictureInDpb = pCtx->pDec; //save ECed pic for future use

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