shithub: openh264

Download patch

ref: 5e3e975ffb600727e760aabcb58c5e8d9f47cbcd
parent: 91fa9fad638e2e28aebc55d500e9f5f98c446dd0
parent: 559e786fa47709554461f38a8e84274409c25e66
author: HaiboZhu <haibozhu@cisco.com>
date: Tue Jan 19 07:25:10 EST 2016

Merge pull request #2331 from ruil2/return_value

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