History

1. fix readPicture in h264dec.cpp for multi-slice parser and add support for nal_deliminator. 2. Fix thread-decoding hanging due to incorrect call order of PrefetchPic and reference list update. 3. call WelsResetRefPic in right place to fix artifacts existing in a thread unit test case 4. add GetPrevFrameNum function to get correct iPrevFrameNum in thread-decoding mode.

xiaotianshi2 committed 6 years ago

Commit 006d9821 parent f02cf484 files · +47 −49Browse files

Showing the changes to codec/decoder/core/src/decoder.cpp (1 of 4 files). Show all

Unified · Split

codec/decoder/core/src/decoder.cpp+3−2
@@ -438,8 +438,9 @@ static inline int32_t GetTargetRefListSize (PWelsDecoderContext pCtx) { · 437 unmodified lines
438438 iNumRefFrames = MAX_REF_PIC_COUNT + 2;
439439 } else {
440440 iNumRefFrames = pCtx->pSps->iNumRefFrames + 2;
441− if (GetThreadCount (pCtx) > 1) {
442− iNumRefFrames = MAX_REF_PIC_COUNT + 1;
441+ int32_t iThreadCount = GetThreadCount (pCtx);
442+ if (iThreadCount > 1) {
443+ iNumRefFrames = MAX_REF_PIC_COUNT;
443444 }
444445 }
445446

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