History

fix low memory crash issue

huili2 committed 9 years ago

Commit d1c0a931 parent 48c2fe116 files · +401 −386Browse files

Showing the changes to test/api/decoder_ec_test.cpp (1 of 16 files). Show all

Unified · Split

test/api/decoder_ec_test.cpp+8−8
@@ -35,7 +35,7 @@ TEST_P (EncodeDecodeTestAPI, SetOptionECFlag_ERROR_CON_DISABLE) { · 34 unmodified lines
3535 ASSERT_EQ (0, rv);
3636 m_LTR_Recover_Request.uiFeedbackType = NO_RECOVERY_REQUSET;
3737
38− InitialEncDec (p.width, p.height);
38+ ASSERT_TRUE (InitialEncDec (p.width, p.height));
3939 int32_t iTraceLevel = WELS_LOG_QUIET;
4040 encoder_->SetOption (ENCODER_OPTION_TRACE_LEVEL, &iTraceLevel);
4141 decoder_->SetOption (DECODER_OPTION_TRACE_LEVEL, &iTraceLevel);
@@ -91,7 +91,7 @@ TEST_P (EncodeDecodeTestAPI, SetOptionECFlag_ERROR_CON_SLICE_COPY) { · 49 unmodified lines
9191 ASSERT_TRUE (rv == cmResultSuccess);
9292 m_LTR_Recover_Request.uiFeedbackType = NO_RECOVERY_REQUSET;
9393
94− InitialEncDec (p.width, p.height);
94+ ASSERT_TRUE (InitialEncDec (p.width, p.height));
9595 int32_t iTraceLevel = WELS_LOG_QUIET;
9696 encoder_->SetOption (ENCODER_OPTION_TRACE_LEVEL, &iTraceLevel);
9797 decoder_->SetOption (DECODER_OPTION_TRACE_LEVEL, &iTraceLevel);
@@ -162,7 +162,7 @@ TEST_P (EncodeDecodeTestAPI, SetOptionECIDC_GeneralSliceChange) { · 64 unmodified lines
162162
163163 //Start for enc/dec
164164
165− InitialEncDec (p.width, p.height);
165+ ASSERT_TRUE (InitialEncDec (p.width, p.height));
166166 int32_t iTraceLevel = WELS_LOG_QUIET;
167167 encoder_->SetOption (ENCODER_OPTION_TRACE_LEVEL, &iTraceLevel);
168168 decoder_->SetOption (DECODER_OPTION_TRACE_LEVEL, &iTraceLevel);
@@ -249,7 +249,7 @@ TEST_F (EncodeDecodeTestAPI, SetOptionECIDC_SpecificFrameChange) { · 80 unmodified lines
249249 int iIdx = 0;
250250 int len = 0;
251251 unsigned char* pData[3] = { NULL };
252− InitialEncDec (p.width, p.height);
252+ ASSERT_TRUE (InitialEncDec (p.width, p.height));
253253 //Frame 0: IDR, EC_IDC=DISABLE, loss = 0
254254 EncodeOneFrame (1);
255255 encToDecData (info, len);
@@ -383,7 +383,7 @@ TEST_F (EncodeDecodeTestAPI, SetOptionECIDC_SpecificSliceChange_IDRLoss) { · 127 unmodified lines
383383 unsigned char* pData[3] = { NULL };
384384 int iTotalSliceSize = 0;
385385
386− InitialEncDec (p.width, p.height);
386+ ASSERT_TRUE (InitialEncDec (p.width, p.height));
387387
388388 //Frame 0: IDR, EC_IDC=2, loss = 2
389389 EncodeOneFrame (1);
@@ -515,7 +515,7 @@ TEST_F (EncodeDecodeTestAPI, SetOptionECIDC_SpecificSliceChange_IDRNoLoss) { · 125 unmodified lines
515515 unsigned char* pData[3] = { NULL };
516516 int iTotalSliceSize = 0;
517517
518− InitialEncDec (p.width, p.height);
518+ ASSERT_TRUE (InitialEncDec (p.width, p.height));
519519
520520 //set EC=DISABLE
521521 uiEcIdc = (uint32_t) (ERROR_CON_DISABLE);
@@ -677,7 +677,7 @@ TEST_F (EncodeDecodeTestAPI, Engine_SVC_Switch_I) { · 155 unmodified lines
677677 ASSERT_TRUE (rv == cmResultSuccess);
678678 m_LTR_Recover_Request.uiFeedbackType = NO_RECOVERY_REQUSET;
679679
680− InitialEncDec (p.width, p.height);
680+ ASSERT_TRUE (InitialEncDec (p.width, p.height));
681681 int32_t iTraceLevel = WELS_LOG_QUIET;
682682 encoder_->SetOption (ENCODER_OPTION_TRACE_LEVEL, &iTraceLevel);
683683 decoder_->SetOption (DECODER_OPTION_TRACE_LEVEL, &iTraceLevel);
@@ -744,7 +744,7 @@ TEST_F (EncodeDecodeTestAPI, Engine_SVC_Switch_P) { · 60 unmodified lines
744744 ASSERT_TRUE (rv == cmResultSuccess);
745745 m_LTR_Recover_Request.uiFeedbackType = NO_RECOVERY_REQUSET;
746746
747− InitialEncDec (p.width, p.height);
747+ ASSERT_TRUE (InitialEncDec (p.width, p.height));
748748 int32_t iTraceLevel = WELS_LOG_QUIET;
749749 encoder_->SetOption (ENCODER_OPTION_TRACE_LEVEL, &iTraceLevel);
750750 decoder_->SetOption (DECODER_OPTION_TRACE_LEVEL, &iTraceLevel);

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