History

Fix the bug that calculate mbAddr error when FMO enable

Haibo Zhu committed 11 years ago

Commit 646f3e91 parent 5d9b9521 file · +3 −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+3−2
@@ -2446,10 +2446,9 @@ bool CheckAndFinishLastPic (PWelsDecoderContext pCtx, uint8_t** ppDst, SBufferIn · 2445 unmodified lines
24462446 bool CheckRefPicturesComplete (PWelsDecoderContext pCtx) {
24472447 // Multi Reference, RefIdx may differ
24482448 bool bAllRefComplete = true;
2449− int32_t iRealMbIdx;
2449+ int32_t iRealMbIdx = pCtx->pCurDqLayer->sLayerInfo.sSliceInLayer.sSliceHeaderExt.sSliceHeader.iFirstMbInSlice;
24502450 for (int32_t iMbIdx = 0; bAllRefComplete
24512451 && iMbIdx < pCtx->pCurDqLayer->sLayerInfo.sSliceInLayer.iTotalMbInCurSlice; iMbIdx++) {
2452− iRealMbIdx = pCtx->pCurDqLayer->sLayerInfo.sSliceInLayer.sSliceHeaderExt.sSliceHeader.iFirstMbInSlice + iMbIdx;
24532452 switch (pCtx->pCurDqLayer->pMbType[iRealMbIdx]) {
24542453 case MB_TYPE_SKIP:
24552454 case MB_TYPE_16x16:
@@ -2477,6 +2476,8 @@ bool CheckRefPicturesComplete (PWelsDecoderContext pCtx) { · 21 unmodified lines
24772476 default:
24782477 break;
24792478 }
2479+ iRealMbIdx = (pCtx->pPps->uiNumSliceGroups > 1) ? FmoNextMb (pCtx->pFmo, iRealMbIdx) :
2480+ (pCtx->pCurDqLayer->sLayerInfo.sSliceInLayer.sSliceHeaderExt.sSliceHeader.iFirstMbInSlice + iMbIdx);
24802481 }
24812482 return bAllRefComplete;
24822483 }

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