Showing the changes to codec/decoder/plus/src/welsDecoderExt.cpp (1 of 9 files). Show all
Unified · Split
| @@ -438,17 +438,11 @@ DECODING_STATE CWelsDecoder::DecodeFrame2 (const unsigned char* kpSrc, · 437 unmodified lines | ||
| 438 | 438 | } |
| 439 | 439 | if ((m_pDecContext->eErrorConMethod != ERROR_CON_DISABLE) && (pDstInfo->iBufferStatus == 1)) { |
| 440 | 440 | //TODO after dec status updated |
| 441 | − m_pDecContext->bDecErrorConedFlag = true; | |
| 442 | 441 | m_pDecContext->iErrorCode |= dsDataErrorConcealed; |
| 443 | 442 | } |
| 444 | 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 | 447 | return dsErrorFree; |
| 454 | 448 | } |
| @@ -457,7 +451,7 @@ DECODING_STATE CWelsDecoder::DecodeParser (const unsigned char* kpSrc, · 2 unmodified lines | ||
| 457 | 451 | const int kiSrcLen, |
| 458 | 452 | SParserBsInfo* pDstInfo) { |
| 459 | 453 | //TODO, add function here |
| 460 | − return (DECODING_STATE) m_pDecContext->iErrorCode; | |
| 454 | + return (DECODING_STATE) m_pDecContext->iErrorCode; | |
| 461 | 455 | } |
| 462 | 456 | |
| 463 | 457 | DECODING_STATE CWelsDecoder::DecodeFrame (const unsigned char* kpSrc, |