Showing the changes to codec/encoder/core/src/encoder_ext.cpp (1 of 5 files). Show all
Unified · Split
| @@ -2886,8 +2886,8 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, SFrameBSInfo * pFbi, const SSou · 2885 unmodified lines | ||
| 2886 | 2886 | |
| 2887 | 2887 | WelsInitCurrentLayer (pCtx, iCurWidth, iCurHeight); |
| 2888 | 2888 | |
| 2889 | − WelsMarkPic (pCtx); | |
| 2890 | − if (!WelsBuildRefList (pCtx, pCtx->iPOC)) { | |
| 2889 | + pCtx->pFuncList->pMarkPic(pCtx); | |
| 2890 | + if (!pCtx->pFuncList->pBuildRefList (pCtx, pCtx->iPOC,0)) { | |
| 2891 | 2891 | // Force coding IDR as followed |
| 2892 | 2892 | ForceCodingIDR (pCtx); |
| 2893 | 2893 | WelsLog (pCtx, WELS_LOG_WARNING, "WelsEncoderEncodeExt(), WelsBuildRefList failed for P frames, pCtx->iNumRef0= %d. ForceCodingIDR!\n", |
| @@ -3139,7 +3139,7 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, SFrameBSInfo * pFbi, const SSou · 245 unmodified lines | ||
| 3139 | 3139 | |
| 3140 | 3140 | // reference picture list update |
| 3141 | 3141 | if (eNalRefIdc != NRI_PRI_LOWEST) { |
| 3142 | − if (!WelsUpdateRefList (pCtx)) { | |
| 3142 | + if (!pCtx->pFuncList->pUpdateRefList (pCtx)) { | |
| 3143 | 3143 | // Force coding IDR as followed |
| 3144 | 3144 | ForceCodingIDR (pCtx); |
| 3145 | 3145 | WelsLog (pCtx, WELS_LOG_WARNING, "WelsEncoderEncodeExt(), WelsUpdateRefList failed. ForceCodingIDR!\n"); |