shithub: openh264

Download patch

ref: ad8ba85136a92c496f29e8d3a27e981142686321
parent: 22cabd39ca377e6ddcb90be8164feb4d60068a72
parent: 81805ab23d181a662d3e94405ba495b8a52a3abb
author: huili2 <huili2@cisco.com>
date: Wed Dec 31 08:14:17 EST 2014

Merge pull request #1685 from HaiboZhu/Debug_No_Deblocking_when_TotalMB_equals_to_0

Force NO deblocking when no MB decoded in current slice

--- 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);