Showing the changes to codec/decoder/core/src/decoder.cpp (1 of 4 files). Show all
Unified · Split
| @@ -438,8 +438,9 @@ static inline int32_t GetTargetRefListSize (PWelsDecoderContext pCtx) { · 437 unmodified lines | ||
| 438 | 438 | iNumRefFrames = MAX_REF_PIC_COUNT + 2; |
| 439 | 439 | } else { |
| 440 | 440 | 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; | |
| 443 | 444 | } |
| 444 | 445 | } |
| 445 | 446 | |