shithub: openh264

Download patch

ref: 9ec743c1564402517aa1e8cd1889331090a71172
parent: 703bbef12849115b79b730b320fa7cfb2dbe3fa1
author: Martin Storsjö <martin@martin.st>
date: Fri Nov 14 04:47:49 EST 2014

Use the right data type for a variable

Both pNalLengthInByte[] that are accumulated, and sFbi.iFrameSizeInBytes
that it is compared to, are plain 'int', not 'uint32_t'.

This fixes warnings about comparison between signed and unsigned.

--- a/test/encoder/EncUT_EncoderExt.cpp
+++ b/test/encoder/EncUT_EncoderExt.cpp
@@ -787,7 +787,7 @@
   PrepareOneSrcFrame();
   iResult = pPtrEnc->EncodeFrame (pSrcPic, &sFbi);
 
-  uint32_t length = 0;
+  int length = 0;
   for (int i = 0; i < sFbi.iLayerNum; ++i) {
     for (int j = 0; j < sFbi.sLayerInfo[i].iNalCount; ++j) {
       length += sFbi.sLayerInfo[i].pNalLengthInByte[j];