From ea9b80adb39ef55185a282cfd68b423bb5a3f036 Mon Sep 17 00:00:00 2001 From: Sijia Chen Date: Fri, 24 Oct 2014 14:12:53 +0800 Subject: [PATCH] fix a wrong range clip --- codec/encoder/core/inc/param_svc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/codec/encoder/core/inc/param_svc.h b/codec/encoder/core/inc/param_svc.h index d4e24c9a..18f76fa2 100644 --- a/codec/encoder/core/inc/param_svc.h +++ b/codec/encoder/core/inc/param_svc.h @@ -399,9 +399,9 @@ typedef struct TagWelsSvcCodingParam: SEncParamExt { #ifdef ENABLE_FRAME_DUMP pDlp->sRecFileName[0] = '\0'; // file to be constructed #endif//ENABLE_FRAME_DUMP - pSpatialLayer->iVideoWidth = WELS_CLIP3 (pCodingParam.sSpatialLayers[iIdxSpatial].iVideoWidth, MB_WIDTH_LUMA, + pSpatialLayer->iVideoWidth = WELS_CLIP3 (pCodingParam.sSpatialLayers[iIdxSpatial].iVideoWidth, 0, iPicWidth); // frame width - pSpatialLayer->iVideoHeight = WELS_CLIP3 (pCodingParam.sSpatialLayers[iIdxSpatial].iVideoHeight, MB_HEIGHT_LUMA, + pSpatialLayer->iVideoHeight = WELS_CLIP3 (pCodingParam.sSpatialLayers[iIdxSpatial].iVideoHeight, 0, iPicHeight);// frame height pSpatialLayer->iSpatialBitrate =