ref: e8b1802b88e35178663ef56baa0bdca0241649b7
parent: d48a90da0da99b87d4f4db38a380217b34b28a0b
parent: 913f174367c2377bb1518f918cc088043b117d0e
author: guangwei <[email protected]>
date: Fri Apr 14 12:59:03 EDT 2017
Merge pull request #2722 from ruil2/profile reset encoder when profile/level change
--- a/codec/encoder/core/src/encoder_ext.cpp
+++ b/codec/encoder/core/src/encoder_ext.cpp
@@ -4230,6 +4230,14 @@
bNeedReset = true;
break;
}
+ if (pOldParam->sSpatialLayers[iIndexD].uiProfileIdc !=
+ pNewParam->sSpatialLayers[iIndexD].uiProfileIdc
+ ||
+ pOldParam->sSpatialLayers[iIndexD].uiLevelIdc !=
+ pNewParam->sSpatialLayers[iIndexD].uiLevelIdc) {
+ bNeedReset = true;
+ break;
+ }
// check frame rate
// we can not check whether corresponding fFrameRate is equal or not,