shithub: openh264

Download patch

ref: f623aa318de8d9697fc0e30cf8f4c503020ee286
parent: 3fa9a4840a01af2cff2acaa3b05337b3c90e1284
parent: 3b55d649029e33007c15287547041c1be6c17409
author: HaiboZhu <haibozhu@cisco.com>
date: Mon May 16 11:35:38 EDT 2016

Merge pull request #2459 from ruil2/fix_crash

fix crash when temporal layer is skipped, the frame should not be encoded

--- a/codec/encoder/core/src/encoder_ext.cpp
+++ b/codec/encoder/core/src/encoder_ext.cpp
@@ -3917,7 +3917,7 @@
     }
   }
 
-  while (iSpatialIdx < pSvcParam->iSpatialLayerNum) {
+  while (iSpatialIdx < iSpatialNum) {
     iCurDid  = (pSpatialIndexMap + iSpatialIdx)->iDid;
     SSpatialLayerConfig* pParam = &pSvcParam->sSpatialLayers[iCurDid];
     SSpatialLayerInternal* pParamInternal = &pSvcParam->sDependencyLayers[iCurDid];