shithub: openh264

Download patch

ref: f0240ef3bb7165b15c3ce2b46f8b1895973e7e1c
parent: 388a93fe259f24ddb9bea3771d5a7650b539d325
author: Martin Storsjö <[email protected]>
date: Fri May 30 07:31:48 EDT 2014

Use the right data type for a local variable

All the values assigned into this variable, and compared with this
variable, are int32_t.

This avoids warnings about comparison between signed and unsigned
types.

--- a/codec/encoder/core/src/encoder_ext.cpp
+++ b/codec/encoder/core/src/encoder_ext.cpp
@@ -3730,7 +3730,7 @@
   if (NULL == pSlice)
     return ENC_RETURN_MEMALLOCERR;
   memcpy (pSlice, pCurLayer->sLayerInfo.pSliceInLayer, sizeof (SSlice) * iMaxSliceNumOld);
-  uint32_t uiSliceIdx;
+  int32_t uiSliceIdx;
   uiSliceIdx = iMaxSliceNumOld;
   SSlice* pBaseSlice = &pCurLayer->sLayerInfo.pSliceInLayer[0];
   SSliceHeaderExt* pBaseSHExt = &pBaseSlice->sSliceHeaderExt;