History

enable MB re-decoding

huili2 committed 12 years ago

Commit 95012b01 parent dd5b9b81 file · +5 −2Browse files

Showing the changes to codec/decoder/core/src/decode_slice.cpp (1 of 1 file). Show all

Unified · Split

codec/decoder/core/src/decode_slice.cpp+5−2
@@ -93,7 +93,11 @@ int32_t WelsTargetSliceConstruction (PWelsDecoderContext pCtx) { · 92 unmodified lines
9393 }
9494
9595 ++iCountNumMb;
96− ++pCtx->iTotalNumMbRec;
96+ if (!pCurLayer->pMbCorrectlyDecodedFlag[iNextMbXyIndex]) { //already con-ed, overwrite
97+ pCurLayer->pMbCorrectlyDecodedFlag[iNextMbXyIndex] = true;
98+ ++pCtx->iTotalNumMbRec;
99+ }
100+
97101 if (iCountNumMb >= iTotalNumMb) {
98102 break;
99103 }
@@ -394,7 +398,6 @@ int32_t WelsDecodeSlice (PWelsDecoderContext pCtx, bool bFirstSliceInLayer, PNal · 294 unmodified lines
394398 }
395399
396400 ++pSlice->iTotalMbInCurSlice;
397− pCurLayer->pMbCorrectlyDecodedFlag[iNextMbXyIndex] = true;
398401
399402 if (pSliceHeader->pPps->uiNumSliceGroups > 1) {
400403 iNextMbXyIndex = FmoNextMb (pFmo, iNextMbXyIndex);

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