shithub: openh264

Download patch

ref: 18c3c096c62b7fef244330da57401ec365de5a1b
parent: ea99af883cee48185eda14aeae5fde3050da2c43
author: xiaotiansf <xiaotianshimail@gmail.com>
date: Wed Feb 6 11:40:23 EST 2019

coding style consistent by adding {}.

--- a/codec/decoder/plus/src/welsDecoderExt.cpp
+++ b/codec/decoder/plus/src/welsDecoderExt.cpp
@@ -582,15 +582,15 @@
     eNalType = m_pDecContext->sCurNalHead.eNalUnitType;
 
     if ((m_pDecContext->iErrorCode & dsRefLost) && m_pDecContext->eSliceType == B_SLICE) {
-      if (ResetDecoder())
+      if (ResetDecoder()) {
         return dsRefLost;
-
+      }
       return dsErrorFree;
     }
     if (m_pDecContext->iErrorCode & dsOutOfMemory) {
-      if (ResetDecoder())
+      if (ResetDecoder()) {
         return dsOutOfMemory;
-
+      }
       return dsErrorFree;
     }
     //for AVC bitstream (excluding AVC with temporal scalability, including TP), as long as error occur, SHOULD notify upper layer key frame loss.