shithub: openh264

Download patch

ref: ac290d65c7b6993f18285a73784933356001b05a
parent: dcdcc7f3b8943233bde38ca6bc36ca3668976941
parent: 3cce92ea199c5a69f82b31a95e83add1eb45bcdf
author: ruil2 <[email protected]>
date: Fri Oct 24 08:50:07 EDT 2014

Merge pull request #1446 from sijchen/for_format

[Encoder] fix a small range of slice idx

--- a/codec/encoder/core/inc/slice.h
+++ b/codec/encoder/core/inc/slice.h
@@ -168,7 +168,7 @@
 uint8_t		uiMvcNum;
 uint8_t		sScaleShift;
 
-uint8_t		uiSliceIdx;
+uint32_t		uiSliceIdx;
 bool		bSliceHeaderExtFlag; // Indicate which slice header is used, avc or ext?
 uint8_t		uiLastMbQp;		// stored qp for last mb coded, maybe more efficient for mb skip detection etc.
 
--- a/codec/encoder/core/src/svc_set_mb_syn_cavlc.cpp
+++ b/codec/encoder/core/src/svc_set_mb_syn_cavlc.cpp
@@ -208,7 +208,7 @@
   }
 }
 
-int32_t CheckBitstreamBuffer (const uint8_t	kuiSliceIdx, sWelsEncCtx* pEncCtx,  SBitStringAux* pBs) {
+int32_t CheckBitstreamBuffer (const uint32_t	kuiSliceIdx, sWelsEncCtx* pEncCtx,  SBitStringAux* pBs) {
   const intX_t iLeftLength = pBs->pBufEnd - pBs->pBufPtr - 1;
   assert (iLeftLength > 0);