Avoid a comparison between signed and unsigned integers, and avoid a warning about a variable which is set but not used.
Showing the changes to test/api/encode_decode_api_test.cpp (1 of 1 file). Show all
Unified · Split
| @@ -270,7 +270,7 @@ long IsKeyFrameLost (ISVCDecoder* pDecoder, SLTRRecoverRequest* p_LTR_Recover_Re · 269 unmodified lines | ||
| 270 | 270 | if (m_P2PmodeFlag && temple_id == 0) { |
| 271 | 271 | pDecoder->GetOption (DECODER_OPTION_IDR_PIC_ID, &tempInt); |
| 272 | 272 | // 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) { | |
| 274 | 274 | p_LTR_Recover_Request->uiIDRPicId = tempInt; |
| 275 | 275 | p_LTR_Recover_Request->iLastCorrectFrameNum = -1; |
| 276 | 276 | } |
| @@ -731,6 +731,7 @@ TEST_P (EncodeDecodeTestAPI, SetOptionECFlag_ERROR_CON_SLICE_COPY) { · 454 unmodified lines | ||
| 731 | 731 | LTRMarkFeedback (decoder_, encoder_, &m_LTR_Marking_Feedback, rv); |
| 732 | 732 | iIdx++; |
| 733 | 733 | } |
| 734 | + (void) iSkipedBytes; | |
| 734 | 735 | } |
| 735 | 736 | |
| 736 | 737 | INSTANTIATE_TEST_CASE_P (EncodeDecodeTestBase, EncodeDecodeTestAPI, |