History

add return error if data lost

huili2 committed 12 years ago

Commit b55f1bd1 parent 0f449912 files · +3 −0Browse files

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

Unified · Split

codec/decoder/core/src/decoder_core.cpp+2−0
@@ -1943,6 +1943,7 @@ int32_t DecodeCurrentAccessUnit (PWelsDecoderContext pCtx, uint8_t** ppDst, SBuf · 1942 unmodified lines
19431943 if (NeedErrorCon (pCtx)) {
19441944 ImplementErrorCon (pCtx);
19451945 pCtx->iTotalNumMbRec = pCtx->pSps->iMbWidth * pCtx->pSps->iMbHeight;
1946+ pCtx->iErrorCode |= dsDataErrorConcealed;
19461947 }
19471948 }
19481949
@@ -1992,6 +1993,7 @@ bool CheckAndDoEC (PWelsDecoderContext pCtx, uint8_t** ppDst, SBufferInfo* pDstI · 43 unmodified lines
19921993 pCtx->iPrevFrameNum = pCtx->sLastSliceHeader.iFrameNum; //save frame_num
19931994 if (pCtx->bLastHasMmco5)
19941995 pCtx->iPrevFrameNum = 0;
1996+ pCtx->iErrorCode |= dsDataErrorConcealed;
19951997 }
19961998 }
19971999 return ERR_NONE;

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