enable MB re-decoding

This commit is contained in:
huili2
2014-06-20 02:01:02 -07:00
parent dd5b9b89f6
commit 95012b0af6

View File

@@ -93,7 +93,11 @@ int32_t WelsTargetSliceConstruction (PWelsDecoderContext pCtx) {
} }
++iCountNumMb; ++iCountNumMb;
if (!pCurLayer->pMbCorrectlyDecodedFlag[iNextMbXyIndex]) { //already con-ed, overwrite
pCurLayer->pMbCorrectlyDecodedFlag[iNextMbXyIndex] = true;
++pCtx->iTotalNumMbRec; ++pCtx->iTotalNumMbRec;
}
if (iCountNumMb >= iTotalNumMb) { if (iCountNumMb >= iTotalNumMb) {
break; break;
} }
@@ -394,7 +398,6 @@ int32_t WelsDecodeSlice (PWelsDecoderContext pCtx, bool bFirstSliceInLayer, PNal
} }
++pSlice->iTotalMbInCurSlice; ++pSlice->iTotalMbInCurSlice;
pCurLayer->pMbCorrectlyDecodedFlag[iNextMbXyIndex] = true;
if (pSliceHeader->pPps->uiNumSliceGroups > 1) { if (pSliceHeader->pPps->uiNumSliceGroups > 1) {
iNextMbXyIndex = FmoNextMb (pFmo, iNextMbXyIndex); iNextMbXyIndex = FmoNextMb (pFmo, iNextMbXyIndex);