ref: 09fcc935758cab27e3959dc54ee6eac03da41860
parent: 45d13338ed0ca3d1a729b17e02e6068e00dbb8e0
author: Martin Storsjö <[email protected]>
date: Mon Mar 16 07:07:42 EDT 2015
Initialize iLastCorrectFrameNum in GetOptionLTR_ALLLTR This avoids valgrind warnings about uninitialized variables in case the random uiIDRPicId actually turns out to be correct.
--- a/test/api/encode_decode_api_test.cpp
+++ b/test/api/encode_decode_api_test.cpp
@@ -994,6 +994,7 @@
m_LTR_Recover_Request.uiFeedbackType = LTR_RECOVERY_REQUEST;
m_LTR_Recover_Request.iCurrentFrameNum = rand() % 2 == 1 ? -rand() % 10000 : rand() % 10000;
m_LTR_Recover_Request.uiIDRPicId = rand() % 2 == 1 ? -rand() % 10000 : rand() % 10000;
+ m_LTR_Recover_Request.iLastCorrectFrameNum = rand() % 2 == 1 ? -rand() % 10000 : rand() % 10000;
encoder_->SetOption (ENCODER_LTR_RECOVERY_REQUEST, &m_LTR_Recover_Request);
m_LTR_Marking_Feedback.uiFeedbackType = rand() % 2 == 1 ? LTR_MARKING_SUCCESS : LTR_MARKING_FAILED;
m_LTR_Marking_Feedback.uiIDRPicId = rand() % 2 == 1 ? -rand() % 10000 : rand() % 10000;