Showing the changes to codec/encoder/core/src/encoder_ext.cpp (1 of 1 file). Show all
Unified · Split
| @@ -4351,6 +4351,14 @@ int32_t WelsEncoderParamAdjust (sWelsEncCtx** ppCtx, SWelsSvcCodingParam* pNewPa · 4350 unmodified lines | ||
| 4351 | 4351 | bNeedReset = true; |
| 4352 | 4352 | break; |
| 4353 | 4353 | } |
| 4354 | + if (pOldParam->sSpatialLayers[iIndexD].uiProfileIdc != | |
| 4355 | + pNewParam->sSpatialLayers[iIndexD].uiProfileIdc | |
| 4356 | + || | |
| 4357 | + pOldParam->sSpatialLayers[iIndexD].uiLevelIdc != | |
| 4358 | + pNewParam->sSpatialLayers[iIndexD].uiLevelIdc) { | |
| 4359 | + bNeedReset = true; | |
| 4360 | + break; | |
| 4361 | + } | |
| 4354 | 4362 | |
| 4355 | 4363 | // check frame rate |
| 4356 | 4364 | // we can not check whether corresponding fFrameRate is equal or not, |