Showing the changes to codec/decoder/plus/src/welsDecoderExt.cpp (1 of 1 file). Show all
Unified · Split
| @@ -582,15 +582,15 @@ DECODING_STATE CWelsDecoder::DecodeFrame2 (const unsigned char* kpSrc, · 581 unmodified lines | |||
| 582 | eNalType = m_pDecContext->sCurNalHead.eNalUnitType; | 582 | eNalType = m_pDecContext->sCurNalHead.eNalUnitType; |
| 583 | 583 | ||
| 584 | if ((m_pDecContext->iErrorCode & dsRefLost) && m_pDecContext->eSliceType == B_SLICE) { | 584 | if ((m_pDecContext->iErrorCode & dsRefLost) && m_pDecContext->eSliceType == B_SLICE) { |
| 585 | if (ResetDecoder()) | 585 | if (ResetDecoder()) { |
| 586 | return dsRefLost; | 586 | return dsRefLost; |
| 587 | 587 | } | |
| 588 | return dsErrorFree; | 588 | return dsErrorFree; |
| 589 | } | 589 | } |
| 590 | if (m_pDecContext->iErrorCode & dsOutOfMemory) { | 590 | if (m_pDecContext->iErrorCode & dsOutOfMemory) { |
| 591 | if (ResetDecoder()) | 591 | if (ResetDecoder()) { |
| 592 | return dsOutOfMemory; | 592 | return dsOutOfMemory; |
| 593 | 593 | } | |
| 594 | return dsErrorFree; | 594 | return dsErrorFree; |
| 595 | } | 595 | } |
| 596 | //for AVC bitstream (excluding AVC with temporal scalability, including TP), as long as error occur, SHOULD notify upper layer key frame loss. | 596 | //for AVC bitstream (excluding AVC with temporal scalability, including TP), as long as error occur, SHOULD notify upper layer key frame loss. |