shithub: openh264

Download patch

ref: 7437b84d1b24498fb3d7e002b83a68922a261644
parent: b9c46a404a51e9bc700378da3051956dbe1084bf
parent: f0e8293e73353f61798713a4c0b5b6ab54989206
author: ruil2 <ruil2@cisco.com>
date: Thu May 24 06:26:40 EDT 2018

Merge pull request #2959 from Zefz/freestanding-fix

Consolidate function signature implementation with prototype

--- a/codec/decoder/core/src/decoder_core.cpp
+++ b/codec/decoder/core/src/decoder_core.cpp
@@ -561,7 +561,7 @@
   return ERR_NONE;
 }
 
-int32_t ExpandBsBuffer (PWelsDecoderContext pCtx, const int kiSrcLen) {
+int32_t ExpandBsBuffer (PWelsDecoderContext pCtx, const int32_t kiSrcLen) {
   if (pCtx == NULL)
     return ERR_INFO_INVALID_PTR;
   int32_t iExpandStepShift = 1;
@@ -615,7 +615,7 @@
   return ERR_NONE;
 }
 
-int32_t ExpandBsLenBuffer (PWelsDecoderContext pCtx, const int kiCurrLen) {
+int32_t ExpandBsLenBuffer (PWelsDecoderContext pCtx, const int32_t kiCurrLen) {
   SParserBsInfo* pParser = pCtx->pParserBsInfo;
   if (!pParser->pNalLenInByte)
     return ERR_INFO_INVALID_ACCESS;