Showing the changes to codec/decoder/plus/src/welsDecoderExt.cpp (1 of 2 files). Show all
Unified · Split
| @@ -581,6 +581,12 @@ DECODING_STATE CWelsDecoder::DecodeFrame2 (const unsigned char* kpSrc, · 580 unmodified lines | ||
| 581 | 581 | |
| 582 | 582 | eNalType = m_pDecContext->sCurNalHead.eNalUnitType; |
| 583 | 583 | |
| 584 | + if ((m_pDecContext->iErrorCode & dsRefLost) && m_pDecContext->eSliceType == B_SLICE) { | |
| 585 | + if (ResetDecoder()) | |
| 586 | + return dsOutOfMemory; | |
| 587 | + | |
| 588 | + return dsErrorFree; | |
| 589 | + } | |
| 584 | 590 | if (m_pDecContext->iErrorCode & dsOutOfMemory) { |
| 585 | 591 | if (ResetDecoder()) |
| 586 | 592 | return dsOutOfMemory; |