Showing the changes to codec/encoder/core/src/encoder_ext.cpp (1 of 3 files). Show all
Unified · Split
| @@ -1314,7 +1314,11 @@ int32_t RequestMemorySvc (sWelsEncCtx** ppCtx) { · 1313 unmodified lines | |||
| 1314 | //End of Rate control module memory allocation | 1314 | //End of Rate control module memory allocation |
| 1315 | 1315 | ||
| 1316 | //pVaa memory allocation | 1316 | //pVaa memory allocation |
| 1317 | (*ppCtx)->pVaa = (SVAAFrameInfo*)pMa->WelsMallocz (sizeof (SVAAFrameInfo), "pVaa"); | 1317 | if(pParam->iUsageType == SCREEN_CONTENT_REAL_TIME) |
| 1318 | (*ppCtx)->pVaa = (SVAAFrameInfoExt*)pMa->WelsMallocz (sizeof (SVAAFrameInfoExt), "pVaa"); | ||
| 1319 | else | ||
| 1320 | (*ppCtx)->pVaa = (SVAAFrameInfo*)pMa->WelsMallocz (sizeof (SVAAFrameInfo), "pVaa"); | ||
| 1321 | |||
| 1318 | WELS_VERIFY_RETURN_PROC_IF (1, (NULL == (*ppCtx)->pVaa), FreeMemorySvc (ppCtx)) | 1322 | WELS_VERIFY_RETURN_PROC_IF (1, (NULL == (*ppCtx)->pVaa), FreeMemorySvc (ppCtx)) |
| 1319 | 1323 | ||
| 1320 | if ((*ppCtx)->pSvcParam->bEnableAdaptiveQuant) { //malloc mem | 1324 | if ((*ppCtx)->pSvcParam->bEnableAdaptiveQuant) { //malloc mem |