Showing the changes to codec/decoder (1 of 1 file). Show all
Unified · Split
| @@ -134,7 +134,8 @@ int32_t WelsTargetSliceConstruction (PWelsDecoderContext pCtx) { · 133 unmodified lines | ||
| 134 | 134 | |
| 135 | 135 | pDeblockMb = WelsDeblockingMb; |
| 136 | 136 | |
| 137 | − if (1 == pSliceHeader->uiDisableDeblockingFilterIdc) { | |
| 137 | + if (1 == pSliceHeader->uiDisableDeblockingFilterIdc | |
| 138 | + || pCtx->pCurDqLayer->sLayerInfo.sSliceInLayer.iTotalMbInCurSlice <= 0) { | |
| 138 | 139 | return 0;//NO_SUPPORTED_FILTER_IDX |
| 139 | 140 | } else { |
| 140 | 141 | WelsDeblockingFilterSlice (pCtx, pDeblockMb); |