History

fix some bugs of EC

huili2 committed 12 years ago

Commit 0cd3f9d1 parent 9d1af8c2 files · +3 −8Browse 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+2−7
@@ -1493,6 +1493,8 @@ static bool CheckNewSeqBeginAndUpdateActiveLayerSps(PWelsDecoderContext pCtx) { · 1492 unmodified lines
14931493 for(unsigned int i = pCurAu->uiStartPos; i <= pCurAu->uiEndPos; i++) {
14941494 uint32_t uiDid = pCurAu->pNalUnitsList[i]->sNalHeaderExt.uiDependencyId;
14951495 pTmpLayerSps[uiDid] = pCurAu->pNalUnitsList[i]->sNalData.sVclNal.sSliceHeaderExt.sSliceHeader.pSps;
1496+ if ((pCurAu->pNalUnitsList[i]->sNalHeaderExt.sNalUnitHeader.eNalUnitType == NAL_UNIT_CODED_SLICE_IDR) || (pCurAu->pNalUnitsList[i]->sNalHeaderExt.bIdrFlag))
1497+ bNewSeq = true;
14961498 }
14971499 int iMaxActiveLayer = 0, iMaxCurrentLayer = 0;
14981500 for(int i = MAX_LAYER_NUM - 1; i >= 0; i--) {
@@ -1642,19 +1644,12 @@ static inline void InitDqLayerInfo (PDqLayer pDqLayer, PLayerInfo pLayerInfo, PN · 143 unmodified lines
16421644 }
16431645
16441646 void WelsDqLayerDecodeStart (PWelsDecoderContext pCtx, PNalUnit pCurNal, PSps pSps, PPps pPps) {
1645− SNalUnitHeader* pNalHdr = &pCurNal->sNalHeaderExt.sNalUnitHeader;
16461647 PSliceHeader pSh = &pCurNal->sNalData.sVclNal.sSliceHeaderExt.sSliceHeader;
16471648
16481649 pCtx->eSliceType = pSh->eSliceType;
16491650 pCtx->pSliceHeader = pSh;
16501651
16511652 pCtx->iFrameNum = pSh->iFrameNum;
1652−
1653− if ((pNalHdr->eNalUnitType == NAL_UNIT_CODED_SLICE_IDR ||
1654− (pCurNal->sNalHeaderExt.uiQualityId == BASE_QUALITY_ID && pCurNal->sNalHeaderExt.bIdrFlag)) &&
1655− pSh->iFrameNum == 0) { //pSh->iFrameNum == 0 this condition can deleted??????
1656− WelsResetRefPic (pCtx); // Reset decoded picture buffer lists due to an IDR frame incomes
1657− }
16581653 }
16591654
16601655 int32_t InitRefPicList (PWelsDecoderContext pCtx, const uint8_t kuiNRi, const bool kbFirstSlice, int32_t iPoc) {

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