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
438438 }
439439 if ((m_pDecContext->eErrorConMethod != ERROR_CON_DISABLE) && (pDstInfo->iBufferStatus == 1)) {
440440 //TODO after dec status updated
441− m_pDecContext->bDecErrorConedFlag = true;
442441 m_pDecContext->iErrorCode |= dsDataErrorConcealed;
443442 }
444443 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− }
451444 }
445+ // else Error free, the current codec works well
452446
453447 return dsErrorFree;
454448 }
@@ -457,7 +451,7 @@ DECODING_STATE CWelsDecoder::DecodeParser (const unsigned char* kpSrc, · 2 unmodified lines
457451 const int kiSrcLen,
458452 SParserBsInfo* pDstInfo) {
459453 //TODO, add function here
460− return (DECODING_STATE) m_pDecContext->iErrorCode;
454+ return (DECODING_STATE) m_pDecContext->iErrorCode;
461455 }
462456
463457 DECODING_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