shithub: openh264

Download patch

ref: 11bf575892e00a248084ad3e8e06d50d484d4b13
parent: 11f0a111772d964b30ee428979d2c25e11ee8df4
parent: 5356249100d88c81c423814ba626a4701d12117a
author: lyao2 <[email protected]>
date: Fri Aug 1 12:41:19 EDT 2014

Merge pull request #1244 from ruil2/slice_limit

this limitation of the number of MBs is removed in dynamic slice mode

--- a/codec/encoder/core/src/encoder_ext.cpp
+++ b/codec/encoder/core/src/encoder_ext.cpp
@@ -418,12 +418,6 @@
         pSpatialLayer->sSliceCfg.sSliceArgument.uiSliceSizeConstraint =  pCodingParam->uiMaxNalSize - NAL_HEADER_ADD_0X30BYTES;
       }
 
-      // considering the coding efficient and performance, iCountMbNum constraint by MIN_NUM_MB_PER_SLICE condition of multi-pSlice mode settting
-      if (iMbWidth * iMbHeight <= MIN_NUM_MB_PER_SLICE) {
-        pSpatialLayer->sSliceCfg.uiSliceMode	= SM_SINGLE_SLICE;
-        pSpatialLayer->sSliceCfg.sSliceArgument.uiSliceNum	= 1;
-        break;
-      }
     }
     break;
     default: {