History

Fix a few test cases in UT for thread decoding.

xiaotiansf committed 7 years ago

Commit ffba9641 parent e7f5f6a2 files · +27 −21Browse files

Showing the changes to codec/decoder/plus/src/welsDecoderExt.cpp (1 of 2 files). Show all

Unified · Split

codec/decoder/plus/src/welsDecoderExt.cpp+5−3
@@ -916,9 +916,11 @@ DECODING_STATE CWelsDecoder::DecodeFrame2 (const unsigned char* kpSrc, · 915 unmodified lines
916DECODING_STATE CWelsDecoder::FlushFrame (unsigned char** ppDst,916DECODING_STATE CWelsDecoder::FlushFrame (unsigned char** ppDst,
917 SBufferInfo* pDstInfo) {917 SBufferInfo* pDstInfo) {
918 bool bEndOfStreamFlag = true;918 bool bEndOfStreamFlag = true;
919 for (int32_t j = 0; j < m_iCtxCount; ++j) {919 if (m_iThreadCount <= 1) {
920 if (!m_pDecThrCtx[j].pCtx->bEndOfStreamFlag) {920 for (int32_t j = 0; j < m_iCtxCount; ++j) {
921 bEndOfStreamFlag = false;921 if (!m_pDecThrCtx[j].pCtx->bEndOfStreamFlag) {
922 bEndOfStreamFlag = false;
923 }
922 }924 }
923 }925 }
924 if (bEndOfStreamFlag && m_sReoderingStatus.iNumOfPicts > 0) {926 if (bEndOfStreamFlag && m_sReoderingStatus.iNumOfPicts > 0) {

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