add return value judgment

This commit is contained in:
Karina 2016-01-15 10:30:41 +08:00
parent d11f12db54
commit 559e786fa4

View File

@ -503,7 +503,8 @@ DECODING_STATE CWelsDecoder::DecodeFrame2 (const unsigned char* kpSrc,
eNalType = m_pDecContext->sCurNalHead.eNalUnitType;
if (m_pDecContext->iErrorCode & dsOutOfMemory) {
ResetDecoder();
if(ResetDecoder())
return dsOutOfMemory;
}
//for AVC bitstream (excluding AVC with temporal scalability, including TP), as long as error occur, SHOULD notify upper layer key frame loss.
if ((IS_PARAM_SETS_NALS (eNalType) || NAL_UNIT_CODED_SLICE_IDR == eNalType) ||