shithub: openh264

Download patch

ref: 559e786fa47709554461f38a8e84274409c25e66
parent: d11f12db54682e80a48d352a96577e3a34b162cc
author: Karina <ruil2@cisco.com>
date: Fri Jan 15 05:30:41 EST 2016

add return value judgment

--- a/codec/decoder/plus/src/welsDecoderExt.cpp
+++ b/codec/decoder/plus/src/welsDecoderExt.cpp
@@ -503,7 +503,8 @@
     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) ||