From 01559a684e58bd4628552090fc6ef9f1e0817751 Mon Sep 17 00:00:00 2001 From: ganyang Date: Thu, 3 Jul 2014 11:02:09 +0800 Subject: [PATCH] fix a typo issue in ParamValidation --- codec/encoder/core/src/encoder_ext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codec/encoder/core/src/encoder_ext.cpp b/codec/encoder/core/src/encoder_ext.cpp index 8b53713d..319cf07e 100644 --- a/codec/encoder/core/src/encoder_ext.cpp +++ b/codec/encoder/core/src/encoder_ext.cpp @@ -94,7 +94,7 @@ int32_t ParamValidation (SLogContext* pLogCtx, SWelsSvcCodingParam* pCfg) { } if (pCfg->iSpatialLayerNum > 1) { int32_t iFinalWidth = pCfg->sSpatialLayers[pCfg->iSpatialLayerNum - 1].iVideoWidth; - int32_t iFinalHeight = pCfg->sSpatialLayers[pCfg->iSpatialLayerNum - 1].iVideoWidth; + int32_t iFinalHeight = pCfg->sSpatialLayers[pCfg->iSpatialLayerNum - 1].iVideoHeight; for (i = 0; i < (pCfg->iSpatialLayerNum - 1); i++) { SSpatialLayerConfig* fDlp = &pCfg->sSpatialLayers[i]; if ((fDlp->iVideoWidth > iFinalWidth) || (fDlp->iVideoHeight > iFinalHeight)) {