Merge pull request #2331 from ruil2/return_value

add return value judgment
This commit is contained in:
HaiboZhu 2016-01-19 12:25:10 +08:00
commit 5e3e975ffb

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) ||