Showing the changes to codec/decoder/core/src/decoder.cpp (1 of 3 files). Show all
Unified · Split
| @@ -178,10 +178,11 @@ void WelsDecoderDefaults (PWelsDecoderContext pCtx, SLogContext* pLogCtx) { · 177 unmodified lines | ||
| 178 | 178 | */ |
| 179 | 179 | static inline int32_t GetTargetRefListSize (PWelsDecoderContext pCtx) { |
| 180 | 180 | int32_t iNumRefFrames = 0; |
| 181 | + // +2 for EC MV Copy buffer exchange | |
| 181 | 182 | if ((pCtx == NULL) || (pCtx->pSps == NULL)) { |
| 182 | − iNumRefFrames = MAX_REF_PIC_COUNT; | |
| 183 | + iNumRefFrames = MAX_REF_PIC_COUNT + 2; | |
| 183 | 184 | } else { |
| 184 | − iNumRefFrames = pCtx->pSps->iNumRefFrames + 1; | |
| 185 | + iNumRefFrames = pCtx->pSps->iNumRefFrames + 2; | |
| 185 | 186 | } |
| 186 | 187 | |
| 187 | 188 | #ifdef LONG_TERM_REF |