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.
Showing the changes to test/encoder/EncUT_EncoderExt.cpp (1 of 1 file). Show all
Unified · Split
| @@ -787,7 +787,7 @@ TEST_F (EncoderInterfaceTest, FrameSizeCheck) { · 786 unmodified lines | ||
| 787 | 787 | PrepareOneSrcFrame(); |
| 788 | 788 | iResult = pPtrEnc->EncodeFrame (pSrcPic, &sFbi); |
| 789 | 789 | |
| 790 | − uint32_t length = 0; | |
| 790 | + int length = 0; | |
| 791 | 791 | for (int i = 0; i < sFbi.iLayerNum; ++i) { |
| 792 | 792 | for (int j = 0; j < sFbi.sLayerInfo[i].iNalCount; ++j) { |
| 793 | 793 | length += sFbi.sLayerInfo[i].pNalLengthInByte[j]; |