History

Add picture bIsComplete flag to reflect the status of decoder Modify the output error status and add some some judgement

Haibo Zhu committed 12 years ago

Commit 9d182ee1 parent 614e8989 files · +113 −59Browse files

Showing the changes to codec/decoder/plus/src/welsDecoderExt.cpp (1 of 9 files). Show all

Unified · Split

codec/decoder/plus/src/welsDecoderExt.cpp+2−8
@@ -438,17 +438,11 @@ DECODING_STATE CWelsDecoder::DecodeFrame2 (const unsigned char* kpSrc, · 437 unmodified lines
438 }438 }
439 if ((m_pDecContext->eErrorConMethod != ERROR_CON_DISABLE) && (pDstInfo->iBufferStatus == 1)) {439 if ((m_pDecContext->eErrorConMethod != ERROR_CON_DISABLE) && (pDstInfo->iBufferStatus == 1)) {
440 //TODO after dec status updated440 //TODO after dec status updated
441 m_pDecContext->bDecErrorConedFlag = true;
442 m_pDecContext->iErrorCode |= dsDataErrorConcealed;441 m_pDecContext->iErrorCode |= dsDataErrorConcealed;
443 }442 }
444 return (DECODING_STATE) m_pDecContext->iErrorCode;443 return (DECODING_STATE) m_pDecContext->iErrorCode;
445 } else { //decoding correct, but may have ECed status
446 if (m_pDecContext->bDecErrorConedFlag) { //TODO after dec status updated
447 if (m_pDecContext->eErrorConMethod != ERROR_CON_DISABLE) //EC is on
448 m_pDecContext->iErrorCode |= dsDataErrorConcealed;
449 return (DECODING_STATE) m_pDecContext->iErrorCode;
450 }
451 }444 }
445 // else Error free, the current codec works well
452 446
453 return dsErrorFree;447 return dsErrorFree;
454}448}
@@ -457,7 +451,7 @@ DECODING_STATE CWelsDecoder::DecodeParser (const unsigned char* kpSrc, · 2 unmodified lines
457 const int kiSrcLen,451 const int kiSrcLen,
458 SParserBsInfo* pDstInfo) {452 SParserBsInfo* pDstInfo) {
459//TODO, add function here453//TODO, add function here
460 return (DECODING_STATE) m_pDecContext->iErrorCode;454 return (DECODING_STATE) m_pDecContext->iErrorCode;
461}455}
462 456
463DECODING_STATE CWelsDecoder::DecodeFrame (const unsigned char* kpSrc,457DECODING_STATE CWelsDecoder::DecodeFrame (const unsigned char* kpSrc,

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