Showing the changes to codec/encoder/core/src/encoder_ext.cpp (1 of 1 file). Show all
Unified · Split
| @@ -2423,7 +2423,7 @@ void PreprocessSliceCoding (sWelsEncCtx* pCtx) { · 2422 unmodified lines | ||
| 2423 | 2423 | SWelsFuncPtrList* pFuncList = pCtx->pFuncList; |
| 2424 | 2424 | |
| 2425 | 2425 | /* function pointers conditional assignment under sWelsEncCtx, layer_mb_enc_rec (in stack) is exclusive */ |
| 2426 | − if (kbHighestSpatialLayer) { | |
| 2426 | + if (kbHighestSpatialLayer && pCtx->pSvcParam->iUsageType == CAMERA_VIDEO_REAL_TIME) { | |
| 2427 | 2427 | SetFastCodingFunc (pFuncList); |
| 2428 | 2428 | } else { |
| 2429 | 2429 | SetNormalCodingFunc (pFuncList); |