Showing the changes to codec/encoder/core/src/wels_preprocess.cpp (1 of 2 files). Show all
Unified · Split
| @@ -185,6 +185,10 @@ int32_t CWelsPreProcess::BuildSpatialPicList (sWelsEncCtx* pCtx, const SSourcePi · 184 unmodified lines | |||
| 185 | pSvcParam->SUsedPicRect.iTop = 0; | 185 | pSvcParam->SUsedPicRect.iTop = 0; |
| 186 | pSvcParam->SUsedPicRect.iWidth = ((kpSrcPic->iPicWidth >> 1) << 1); | 186 | pSvcParam->SUsedPicRect.iWidth = ((kpSrcPic->iPicWidth >> 1) << 1); |
| 187 | pSvcParam->SUsedPicRect.iHeight = ((kpSrcPic->iPicHeight >> 1) << 1); | 187 | pSvcParam->SUsedPicRect.iHeight = ((kpSrcPic->iPicHeight >> 1) << 1); |
| 188 | if((pSvcParam->SUsedPicRect.iWidth<16)||((pSvcParam->SUsedPicRect.iHeight<16))){ | ||
| 189 | WelsLog ( & (pCtx->sLogCtx), WELS_LOG_ERROR, "Don't support width(%d) or height(%d) which is less than 16 ",pSvcParam->SUsedPicRect.iWidth,pSvcParam->SUsedPicRect.iHeight); | ||
| 190 | return -1; | ||
| 191 | } | ||
| 188 | if (WelsPreprocessReset (pCtx) != 0) | 192 | if (WelsPreprocessReset (pCtx) != 0) |
| 189 | return -1; | 193 | return -1; |
| 190 | 194 | ||