Merge pull request #816 from ruil2/enc_scale

fix input source width and height setting issue
This commit is contained in:
huili2 2014-05-12 12:39:54 +08:00
commit dae4dbf377

View File

@ -177,6 +177,12 @@ int32_t CWelsPreProcess::BuildSpatialPicList (sWelsEncCtx* pCtx, const SSourcePi
if (!m_bInitDone) {
if (WelsPreprocessCreate() != 0)
return -1;
//init source width and height
pSvcParam->SUsedPicRect.iLeft = 0;
pSvcParam->SUsedPicRect.iTop = 0;
pSvcParam->SUsedPicRect.iWidth = ((kpSrcPic->iPicWidth >> 1) << 1);
pSvcParam->SUsedPicRect.iHeight = ((kpSrcPic->iPicHeight >> 1) << 1);
if (WelsPreprocessReset (pCtx) != 0)
return -1;