ref: 3b55d649029e33007c15287547041c1be6c17409
parent: 3fa9a4840a01af2cff2acaa3b05337b3c90e1284
author: Karina <ruil2@cisco.com>
date: Mon May 16 10:43:13 EDT 2016
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];