History

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.

Martin Storsjö committed 12 years ago

Commit 9ec743c1 parent 703bbef1 file · +1 −1Browse files

Showing the changes to test/encoder/EncUT_EncoderExt.cpp (1 of 1 file). Show all

Unified · Split

test/encoder/EncUT_EncoderExt.cpp+1−1
@@ -787,7 +787,7 @@ TEST_F (EncoderInterfaceTest, FrameSizeCheck) { · 786 unmodified lines
787787 PrepareOneSrcFrame();
788788 iResult = pPtrEnc->EncodeFrame (pSrcPic, &sFbi);
789789
790− uint32_t length = 0;
790+ int length = 0;
791791 for (int i = 0; i < sFbi.iLayerNum; ++i) {
792792 for (int j = 0; j < sFbi.sLayerInfo[i].iNalCount; ++j) {
793793 length += sFbi.sLayerInfo[i].pNalLengthInByte[j];

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t