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:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user