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
916916 DECODING_STATE CWelsDecoder::FlushFrame (unsigned char** ppDst,
917917 SBufferInfo* pDstInfo) {
918918 bool bEndOfStreamFlag = true;
919− for (int32_t j = 0; j < m_iCtxCount; ++j) {
920− if (!m_pDecThrCtx[j].pCtx->bEndOfStreamFlag) {
921− bEndOfStreamFlag = false;
919+ if (m_iThreadCount <= 1) {
920+ for (int32_t j = 0; j < m_iCtxCount; ++j) {
921+ if (!m_pDecThrCtx[j].pCtx->bEndOfStreamFlag) {
922+ bEndOfStreamFlag = false;
923+ }
922924 }
923925 }
924926 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