History

Force reset decoder when out of memory error

Haibo Zhu committed 11 years ago

Commit 27a9af01 parent ab4e0df4 files · +16 −1Browse files

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

Unified · Split

codec/decoder/core/src/decoder_core.cpp+1−0
@@ -2152,6 +2152,7 @@ int32_t DecodeCurrentAccessUnit (PWelsDecoderContext pCtx, uint8_t** ppDst, SBuf · 2151 unmodified lines
2152 WelsLog (& (pCtx->sLogCtx), WELS_LOG_ERROR,2152 WelsLog (& (pCtx->sLogCtx), WELS_LOG_ERROR,
2153 "DecodeCurrentAccessUnit()::::::PrefetchPic ERROR, pSps->iNumRefFrames:%d.",2153 "DecodeCurrentAccessUnit()::::::PrefetchPic ERROR, pSps->iNumRefFrames:%d.",
2154 pCtx->pSps->iNumRefFrames);2154 pCtx->pSps->iNumRefFrames);
2155 // The error code here need to be separated from the dsOutOfMemory
2155 pCtx->iErrorCode |= dsOutOfMemory;2156 pCtx->iErrorCode |= dsOutOfMemory;
2156 return ERR_INFO_REF_COUNT_OVERFLOW;2157 return ERR_INFO_REF_COUNT_OVERFLOW;
2157 }2158 }

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