History

Change the SParserBsInfo resolution to actual value

Haibo Zhu committed 11 years ago

Commit 1173f871 parent 2b597461 file · +4 −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+4−2
@@ -89,8 +89,10 @@ static inline int32_t DecodeFrameConstruction (PWelsDecoderContext pCtx, uint8_t · 88 unmodified lines
89 uint8_t* pNalBs = NULL;89 uint8_t* pNalBs = NULL;
90 pParser->uiOutBsTimeStamp = (pCurAu->pNalUnitsList [iIdx]) ? pCurAu->pNalUnitsList [iIdx]->uiTimeStamp : 0;90 pParser->uiOutBsTimeStamp = (pCurAu->pNalUnitsList [iIdx]) ? pCurAu->pNalUnitsList [iIdx]->uiTimeStamp : 0;
91 //pParser->iNalNum = 0;91 //pParser->iNalNum = 0;
92 pParser->iSpsWidthInPixel = (pCtx->pSps->iMbWidth << 4);92 pParser->iSpsWidthInPixel = (pCtx->pSps->iMbWidth << 4) - ((pCtx->pSps->sFrameCrop.iLeftOffset +
93 pParser->iSpsHeightInPixel = (pCtx->pSps->iMbHeight << 4);93 pCtx->pSps->sFrameCrop.iRightOffset) << 1);
94 pParser->iSpsHeightInPixel = (pCtx->pSps->iMbHeight << 4) - ((pCtx->pSps->sFrameCrop.iTopOffset +
95 pCtx->pSps->sFrameCrop.iBottomOffset) << 1);
94 96
95 if (pCurAu->pNalUnitsList [iIdx]->sNalHeaderExt.bIdrFlag) { //IDR97 if (pCurAu->pNalUnitsList [iIdx]->sNalHeaderExt.bIdrFlag) { //IDR
96 if (pCtx->bFrameFinish) { //add required sps/pps98 if (pCtx->bFrameFinish) { //add required sps/pps

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