shithub: openh264

Download patch

ref: b66703133e92cde6b62e436be1ac8e022766d923
parent: 4f43624eec8a6546fbd334883e7296bb42cad6da
parent: 09fcc935758cab27e3959dc54ee6eac03da41860
author: sijchen <[email protected]>
date: Tue Mar 17 05:23:20 EDT 2015

Merge pull request #1856 from mstorsjo/ltr-mark-test-init

Initialize iLastCorrectFrameNum in GetOptionLTR_ALLLTR

--- 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;