History

Fix build warnings with gcc in EncodeDecodeTest

Avoid a comparison between signed and unsigned integers, and avoid a warning about a variable which is set but not used.

Martin Storsjö committed 12 years ago

Commit e7cd53e1 parent f8d5f931 file · +2 −1Browse files

Showing the changes to test/api/encode_decode_api_test.cpp (1 of 1 file). Show all

Unified · Split

test/api/encode_decode_api_test.cpp+2−1
@@ -270,7 +270,7 @@ long IsKeyFrameLost (ISVCDecoder* pDecoder, SLTRRecoverRequest* p_LTR_Recover_Re · 269 unmodified lines
270270 if (m_P2PmodeFlag && temple_id == 0) {
271271 pDecoder->GetOption (DECODER_OPTION_IDR_PIC_ID, &tempInt);
272272 // idr_pic_id change ,reset last correct position
273− if (p_LTR_Recover_Request->uiIDRPicId != tempInt) {
273+ if (p_LTR_Recover_Request->uiIDRPicId != (unsigned int) tempInt) {
274274 p_LTR_Recover_Request->uiIDRPicId = tempInt;
275275 p_LTR_Recover_Request->iLastCorrectFrameNum = -1;
276276 }
@@ -731,6 +731,7 @@ TEST_P (EncodeDecodeTestAPI, SetOptionECFlag_ERROR_CON_SLICE_COPY) { · 454 unmodified lines
731731 LTRMarkFeedback (decoder_, encoder_, &m_LTR_Marking_Feedback, rv);
732732 iIdx++;
733733 }
734+ (void) iSkipedBytes;
734735 }
735736
736737 INSTANTIATE_TEST_CASE_P (EncodeDecodeTestBase, EncodeDecodeTestAPI,

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