shithub: openh264

Download patch

ref: 5a60d0fef40e21860d31109dd766bfe807c9b18c
parent: f638546d81c93fbddcc0323a5dff548885c00324
parent: 863852259d82f4c2b78fa25734640881ba459cc0
author: huili2 <huili2@cisco.com>
date: Mon Jul 7 06:17:41 EDT 2014

Merge pull request #1090 from HaiboZhu/Debug_ExpandBsBuffer

Remove warning

--- a/codec/decoder/core/src/decoder_core.cpp
+++ b/codec/decoder/core/src/decoder_core.cpp
@@ -319,7 +319,7 @@
     return ERR_INFO_OUT_OF_MEMORY;
 
   //Calculate and set the bs start and end position
-  for (int32_t i = 0; i <= pCtx->pAccessUnitList->uiActualUnitsNum; i++) {
+  for (uint32_t i = 0; i <= pCtx->pAccessUnitList->uiActualUnitsNum; i++) {
     PBitStringAux pSliceBitsRead = &pCtx->pAccessUnitList->pNalUnitsList[i]->sNalData.sVclNal.sSliceBitsRead;
     pSliceBitsRead->pStartBuf = pSliceBitsRead->pStartBuf - pCtx->sRawData.pHead + pNewBsBuff;
     pSliceBitsRead->pEndBuf   = pSliceBitsRead->pEndBuf   - pCtx->sRawData.pHead + pNewBsBuff;