shithub: openh264

Download patch

ref: 81805ab23d181a662d3e94405ba495b8a52a3abb
parent: 22cabd39ca377e6ddcb90be8164feb4d60068a72
author: Haibo Zhu <haibozhu@cisco.com>
date: Mon Dec 29 20:23:46 EST 2014

Force NO deblocking when no MB decoded in current slice
Remove the judgment outside of the function

--- a/codec/decoder/core/src/decode_slice.cpp
+++ b/codec/decoder/core/src/decode_slice.cpp
@@ -134,7 +134,8 @@
 
   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);