History

Check the duplicate frame_num in short ref list Add more judgement for return value in WelsMarkAsRef()

unknown committed 11 years ago

Commit 868c8e41 parent 5c301de4 files · +17 −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+2−0
@@ -2360,6 +2360,8 @@ int32_t DecodeCurrentAccessUnit (PWelsDecoderContext pCtx, uint8_t** ppDst, SBuf · 2359 unmodified lines
23602360 if (uiNalRefIdc > 0) {
23612361 iRet = WelsMarkAsRef (pCtx);
23622362 if (iRet != ERR_NONE) {
2363+ if (iRet == ERR_INFO_DUPLICATE_FRAME_NUM)
2364+ pCtx->iErrorCode |= dsBitstreamError;
23632365 if (pCtx->eErrorConMethod == ERROR_CON_DISABLE) {
23642366 pCtx->pDec = NULL;
23652367 return iRet;

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