Force NO deblocking when no MB decoded in current slice
Remove the judgment outside of the function
This commit is contained in:
parent
22cabd39ca
commit
81805ab23d
@ -134,7 +134,8 @@ int32_t WelsTargetSliceConstruction (PWelsDecoderContext pCtx) {
|
|||||||
|
|
||||||
pDeblockMb = WelsDeblockingMb;
|
pDeblockMb = WelsDeblockingMb;
|
||||||
|
|
||||||
if (1 == pSliceHeader->uiDisableDeblockingFilterIdc) {
|
if (1 == pSliceHeader->uiDisableDeblockingFilterIdc
|
||||||
|
|| pCtx->pCurDqLayer->sLayerInfo.sSliceInLayer.iTotalMbInCurSlice <= 0) {
|
||||||
return 0;//NO_SUPPORTED_FILTER_IDX
|
return 0;//NO_SUPPORTED_FILTER_IDX
|
||||||
} else {
|
} else {
|
||||||
WelsDeblockingFilterSlice (pCtx, pDeblockMb);
|
WelsDeblockingFilterSlice (pCtx, pDeblockMb);
|
||||||
|
Loading…
Reference in New Issue
Block a user