History

output error when frame incomplete for parse only usage

huili2 committed 11 years ago

Commit b719c3b1 parent d2d4ab82 files · +23 −13Browse files

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

Unified · Split

codec/decoder/core/src/decode_slice.cpp+10−5
@@ -90,12 +90,14 @@ int32_t WelsTargetSliceConstruction (PWelsDecoderContext pCtx) { · 89 unmodified lines
9090 break;
9191 }
9292
93− if (WelsTargetMbConstruction (pCtx)) {
94− WelsLog (& (pCtx->sLogCtx), WELS_LOG_WARNING,
95− "WelsTargetSliceConstruction():::MB(%d, %d) construction error. pCurSlice_type:%d",
96− pCurLayer->iMbX, pCurLayer->iMbY, pCurSlice->eSliceType);
93+ if (!pCtx->bParseOnly) { //for parse only, actual recon MB unnecessary
94+ if (WelsTargetMbConstruction (pCtx)) {
95+ WelsLog (& (pCtx->sLogCtx), WELS_LOG_WARNING,
96+ "WelsTargetSliceConstruction():::MB(%d, %d) construction error. pCurSlice_type:%d",
97+ pCurLayer->iMbX, pCurLayer->iMbY, pCurSlice->eSliceType);
9798
98− return -1;
99+ return -1;
100+ }
99101 }
100102
101103 ++iCountNumMb;
@@ -132,6 +134,9 @@ int32_t WelsTargetSliceConstruction (PWelsDecoderContext pCtx) { · 30 unmodified lines
132134 if ((pCurSlice->eSliceType != I_SLICE) && (pCurSlice->eSliceType != P_SLICE))
133135 return 0;
134136
137+ if (pCtx->bParseOnly) //for parse only, deblocking should not go on
138+ return 0;
139+
135140 pDeblockMb = WelsDeblockingMb;
136141
137142 if (1 == pSliceHeader->uiDisableDeblockingFilterIdc) {

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