shithub: openh264

Download patch

ref: a0e569da8101cfe4b308d9123a697d1b8150b8ed
parent: 396249fedc07ce1a7191c1faee83ffaf96e488db
author: huili2 <huili2@cisco.com>
date: Tue Jul 15 19:34:52 EDT 2014

modify the logic for WME usage

--- a/codec/decoder/core/src/au_parser.cpp
+++ b/codec/decoder/core/src/au_parser.cpp
@@ -327,8 +327,7 @@
       return NULL;
     }
 
-    if ((uiAvailNalNum == 1) && ((NAL_UNIT_CODED_SLICE_IDR == pNalUnitHeader->eNalUnitType)
-                                 || (pCurNal->sNalHeaderExt.bIdrFlag))) {
+    if ((uiAvailNalNum == 1) && CheckNextAuNewSeq (pCtx, pCurNal, pCurNal->sNalData.sVclNal.sSliceHeaderExt.sSliceHeader.pSps)) {
       ResetActiveSPSForEachLayer (pCtx);
     }
     if ((uiAvailNalNum > 1) &&