Merge pull request #2331 from ruil2/return_value
add return value judgment
This commit is contained in:
commit
5e3e975ffb
@ -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) ||
|
||||
|
Loading…
x
Reference in New Issue
Block a user