shithub: openh264

Download patch

ref: 8d44427dc6cd6e24c9cc6d7661bed981568e551d
parent: 148f86f3b05a3b8c21e386fa0bf8e57bd3a803c9
author: huade <huashi@cisco.com>
date: Tue Nov 17 15:54:27 EST 2015

SSliceCtx struture refactoring----change input paramters for UpdateSlicepEncCtxWithPartition

--- a/codec/encoder/core/src/encoder_ext.cpp
+++ b/codec/encoder/core/src/encoder_ext.cpp
@@ -2764,7 +2764,8 @@
   DynslcUpdateMbNeighbourInfoListForAllSlices (pSliceCtx, pCurDq->sMbDataP);
 }
 
-void UpdateSlicepEncCtxWithPartition (SSliceCtx* pSliceCtx, int32_t iPartitionNum) {
+void UpdateSlicepEncCtxWithPartition (SDqLayer* pCurDq, int32_t iPartitionNum) {
+  SSliceCtx* pSliceCtx                  = pCurDq->pSliceEncCtx;
   const int32_t kiMbNumInFrame          = pSliceCtx->iMbNumInFrame;
   int32_t iCountMbNumPerPartition       = kiMbNumInFrame;
   int32_t iAssignableMbLeft             = kiMbNumInFrame;
@@ -2800,7 +2801,7 @@
   SDqLayer* pCurDq      = pCtx->pCurDqLayer;
   SSliceCtx* pSliceCtx  = pCurDq->pSliceEncCtx;
 
-  UpdateSlicepEncCtxWithPartition (pSliceCtx, iPartitionNum);
+  UpdateSlicepEncCtxWithPartition (pCurDq, iPartitionNum);
 
   if (I_SLICE == pCtx->eSliceType) { //check if uiSliceSizeConstraint too small
 #define byte_complexIMBat26 (60)