History

Merge pull request #1025 from huili2/EC_return_error

add return error if data lost

dongzha committed 12 years ago

Commit f8ca91f2 parents 300bbfb b55f1bd2 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
@@ -1944,6 +1944,7 @@ int32_t DecodeCurrentAccessUnit (PWelsDecoderContext pCtx, uint8_t** ppDst, SBuf · 1943 unmodified lines
19441944 if (NeedErrorCon (pCtx)) {
19451945 ImplementErrorCon (pCtx);
19461946 pCtx->iTotalNumMbRec = pCtx->pSps->iMbWidth * pCtx->pSps->iMbHeight;
1947+ pCtx->iErrorCode |= dsDataErrorConcealed;
19471948 }
19481949 }
19491950
@@ -1993,6 +1994,7 @@ bool CheckAndDoEC (PWelsDecoderContext pCtx, uint8_t** ppDst, SBufferInfo* pDstI · 43 unmodified lines
19931994 pCtx->iPrevFrameNum = pCtx->sLastSliceHeader.iFrameNum; //save frame_num
19941995 if (pCtx->bLastHasMmco5)
19951996 pCtx->iPrevFrameNum = 0;
1997+ pCtx->iErrorCode |= dsDataErrorConcealed;
19961998 }
19971999 }
19982000 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