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
1943 if (NeedErrorCon (pCtx)) {1943 if (NeedErrorCon (pCtx)) {
1944 ImplementErrorCon (pCtx);1944 ImplementErrorCon (pCtx);
1945 pCtx->iTotalNumMbRec = pCtx->pSps->iMbWidth * pCtx->pSps->iMbHeight;1945 pCtx->iTotalNumMbRec = pCtx->pSps->iMbWidth * pCtx->pSps->iMbHeight;
1946 pCtx->iErrorCode |= dsDataErrorConcealed;
1946 }1947 }
1947 }1948 }
1948 1949
@@ -1992,6 +1993,7 @@ bool CheckAndDoEC (PWelsDecoderContext pCtx, uint8_t** ppDst, SBufferInfo* pDstI · 43 unmodified lines
1992 pCtx->iPrevFrameNum = pCtx->sLastSliceHeader.iFrameNum; //save frame_num1993 pCtx->iPrevFrameNum = pCtx->sLastSliceHeader.iFrameNum; //save frame_num
1993 if (pCtx->bLastHasMmco5)1994 if (pCtx->bLastHasMmco5)
1994 pCtx->iPrevFrameNum = 0;1995 pCtx->iPrevFrameNum = 0;
1996 pCtx->iErrorCode |= dsDataErrorConcealed;
1995 }1997 }
1996 }1998 }
1997 return ERR_NONE;1999 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