Skip to content

Commit

Permalink
Merge pull request cisco#1686 from HaiboZhu/Debug_v1_3_No_Deblocking_…
Browse files Browse the repository at this point in the history
…when_TotalMB_equals_to_0

Force NO deblocking when no MB decoded in current slice
  • Loading branch information
huili2 committed Dec 31, 2014
2 parents 7180adf + 1f887a0 commit 3a182d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion codec/decoder/core/src/decode_slice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ int32_t WelsTargetSliceConstruction (PWelsDecoderContext pCtx) {

pDeblockMb = WelsDeblockingMb;

if (1 == pSliceHeader->uiDisableDeblockingFilterIdc) {
if (1 == pSliceHeader->uiDisableDeblockingFilterIdc
|| pCtx->pCurDqLayer->sLayerInfo.sSliceInLayer.iTotalMbInCurSlice <= 0) {
return 0;//NO_SUPPORTED_FILTER_IDX
} else {
WelsDeblockingFilterSlice (pCtx, pDeblockMb);
Expand Down

0 comments on commit 3a182d4

Please sign in to comment.