ref: 5aa42e8976d1a3e1fc9c1020b2b921f2c630b79b
parent: 6ec60e6aee65cdc6ecaf81bdc159cf3dd0711836
parent: 9ccabd1fe330bb65832958d0d8e8f04f29ca2760
author: ruil2 <ruil2@cisco.com>
date: Mon Mar 3 11:46:31 EST 2014
Merge pull request #389 from mstorsjo/fix-cropping-param-base Fix cropping when using SEncParamBase
--- a/codec/encoder/core/inc/param_svc.h
+++ b/codec/encoder/core/inc/param_svc.h
@@ -266,10 +266,10 @@
pDlp->sRecFileName[0] = '\0'; // file to be constructed
#endif//ENABLE_FRAME_DUMP
pDlp->iActualWidth = sSpatialLayers[iIdxSpatial].iVideoWidth = iPicWidth;
- pDlp->iFrameWidth = WELS_ALIGN(pDlp->iActualWidth, MB_WIDTH_LUMA);
+ pDlp->iFrameWidth = pDlp->iActualWidth;
pDlp->iActualHeight = sSpatialLayers[iIdxSpatial].iVideoHeight = iPicHeight;
- pDlp->iFrameHeight = WELS_ALIGN(pDlp->iActualHeight, MB_HEIGHT_LUMA);
+ pDlp->iFrameHeight = pDlp->iActualHeight;
pDlp->iSpatialBitrate =
sSpatialLayers[iIdxSpatial].iSpatialBitrate = pCodingParam.iTargetBitrate; // target bitrate for current spatial layer
--- a/test/encoder_test.cpp
+++ b/test/encoder_test.cpp
@@ -73,7 +73,7 @@
},
{
"res/Static_152_100.yuv",
- "a004c7410a78bfe00af65ae7071ce1c485cf036e", 152, 100, 6.0f
+ "af5c6a41b567ce1b2cb6fd427f4379473d3b829f", 152, 100, 6.0f
},
};