Showing the changes to codec/decoder/plus/src/welsDecoderExt.cpp (1 of 5 files). Show all
Unified · Split
| @@ -593,6 +593,12 @@ DECODING_STATE CWelsDecoder::DecodeFrame2 (const unsigned char* kpSrc, · 592 unmodified lines | |||
| 593 | } | 593 | } |
| 594 | return dsErrorFree; | 594 | return dsErrorFree; |
| 595 | } | 595 | } |
| 596 | if (m_pDecContext->iErrorCode & dsRefListNullPtrs) { | ||
| 597 | if (ResetDecoder()) { | ||
| 598 | return dsRefListNullPtrs; | ||
| 599 | } | ||
| 600 | return dsErrorFree; | ||
| 601 | } | ||
| 596 | //for AVC bitstream (excluding AVC with temporal scalability, including TP), as long as error occur, SHOULD notify upper layer key frame loss. | 602 | //for AVC bitstream (excluding AVC with temporal scalability, including TP), as long as error occur, SHOULD notify upper layer key frame loss. |
| 597 | if ((IS_PARAM_SETS_NALS (eNalType) || NAL_UNIT_CODED_SLICE_IDR == eNalType) || | 603 | if ((IS_PARAM_SETS_NALS (eNalType) || NAL_UNIT_CODED_SLICE_IDR == eNalType) || |
| 598 | (VIDEO_BITSTREAM_AVC == m_pDecContext->eVideoType)) { | 604 | (VIDEO_BITSTREAM_AVC == m_pDecContext->eVideoType)) { |