[Encoder] fix for the valgrid warning of issue#1362
Showing the changes to codec/encoder/core/src/encoder_ext.cpp (1 of 5 files). Show all
Unified · Split
| @@ -3727,11 +3727,6 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, SFrameBSInfo* pFbi, const SSour · 3726 unmodified lines | ||
| 3727 | 3727 | WelsSwapDqLayers (pCtx); |
| 3728 | 3728 | } |
| 3729 | 3729 | |
| 3730 | − if (pSvcParam->bEnableLongTermReference && (pCtx->pLtr[pCtx->uiDependencyId].bLTRMarkingFlag | |
| 3731 | − && (pCtx->pLtr[pCtx->uiDependencyId].iLTRMarkMode == LTR_DELAY_MARK))) { | |
| 3732 | − pCtx->bLongTermRefFlag[iDidIdx][0] = true; | |
| 3733 | − } | |
| 3734 | − | |
| 3735 | 3730 | if (pCtx->pVpp->UpdateSpatialPictures (pCtx, pSvcParam, iCurTid, iDidIdx) != 0) { |
| 3736 | 3731 | ForceCodingIDR (pCtx); |
| 3737 | 3732 | WelsLog (pLogCtx, WELS_LOG_WARNING, "WelsEncoderEncodeExt(), Logic Error Found in temporal level. ForceCodingIDR!"); |
| @@ -3742,7 +3737,7 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, SFrameBSInfo* pFbi, const SSour · 4 unmodified lines | ||
| 3742 | 3737 | |
| 3743 | 3738 | if (pSvcParam->bEnableLongTermReference && ((pCtx->pLtr[pCtx->uiDependencyId].bLTRMarkingFlag |
| 3744 | 3739 | && (pCtx->pLtr[pCtx->uiDependencyId].iLTRMarkMode == LTR_DIRECT_MARK)) || eFrameType == videoFrameTypeIDR)) { |
| 3745 | − pCtx->bLongTermRefFlag[iDidIdx][iCurTid] = true; | |
| 3740 | + pCtx->bRefOfCurTidIsLtr[iDidIdx][iCurTid] = true; | |
| 3746 | 3741 | } |
| 3747 | 3742 | } |
| 3748 | 3743 | |