Showing the changes to codec/encoder/core/src/encoder_ext.cpp (1 of 1 file). Show all
Unified · Split
| @@ -94,7 +94,7 @@ int32_t ParamValidation (SLogContext* pLogCtx, SWelsSvcCodingParam* pCfg) { · 93 unmodified lines | ||
| 94 | 94 | } |
| 95 | 95 | if (pCfg->iSpatialLayerNum > 1) { |
| 96 | 96 | int32_t iFinalWidth = pCfg->sSpatialLayers[pCfg->iSpatialLayerNum - 1].iVideoWidth; |
| 97 | − int32_t iFinalHeight = pCfg->sSpatialLayers[pCfg->iSpatialLayerNum - 1].iVideoWidth; | |
| 97 | + int32_t iFinalHeight = pCfg->sSpatialLayers[pCfg->iSpatialLayerNum - 1].iVideoHeight; | |
| 98 | 98 | for (i = 0; i < (pCfg->iSpatialLayerNum - 1); i++) { |
| 99 | 99 | SSpatialLayerConfig* fDlp = &pCfg->sSpatialLayers[i]; |
| 100 | 100 | if ((fDlp->iVideoWidth > iFinalWidth) || (fDlp->iVideoHeight > iFinalHeight)) { |