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.
This commit is contained in:
Martin Storsjö
2014-11-14 09:47:49 +02:00
parent 703bbef128
commit 9ec743c156

View File

@@ -787,7 +787,7 @@ TEST_F (EncoderInterfaceTest, FrameSizeCheck) {
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];