Showing the changes to codec/decoder/plus/src/welsDecoderExt.cpp (1 of 1 file). Show all
Unified · Split
| @@ -503,7 +503,8 @@ DECODING_STATE CWelsDecoder::DecodeFrame2 (const unsigned char* kpSrc, · 502 unmodified lines | ||
| 503 | 503 | eNalType = m_pDecContext->sCurNalHead.eNalUnitType; |
| 504 | 504 | |
| 505 | 505 | if (m_pDecContext->iErrorCode & dsOutOfMemory) { |
| 506 | − ResetDecoder(); | |
| 506 | + if(ResetDecoder()) | |
| 507 | + return dsOutOfMemory; | |
| 507 | 508 | } |
| 508 | 509 | //for AVC bitstream (excluding AVC with temporal scalability, including TP), as long as error occur, SHOULD notify upper layer key frame loss. |
| 509 | 510 | if ((IS_PARAM_SETS_NALS (eNalType) || NAL_UNIT_CODED_SLICE_IDR == eNalType) || |