Skip to content

Commit 3a182d4

Browse files
committed
Merge pull request #1686 from HaiboZhu/Debug_v1_3_No_Deblocking_when_TotalMB_equals_to_0
Force NO deblocking when no MB decoded in current slice
2 parents 7180adf + 1f887a0 commit 3a182d4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

codec/decoder/core/src/decode_slice.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,8 @@ int32_t WelsTargetSliceConstruction (PWelsDecoderContext pCtx) {
134134

135135
pDeblockMb = WelsDeblockingMb;
136136

137-
if (1 == pSliceHeader->uiDisableDeblockingFilterIdc) {
137+
if (1 == pSliceHeader->uiDisableDeblockingFilterIdc
138+
|| pCtx->pCurDqLayer->sLayerInfo.sSliceInLayer.iTotalMbInCurSlice <= 0) {
138139
return 0;//NO_SUPPORTED_FILTER_IDX
139140
} else {
140141
WelsDeblockingFilterSlice (pCtx, pDeblockMb);

0 commit comments

Comments
 (0)