History

Merge pull request #1717 from sijchen/fix_ltr1

[Encoder] fix for the valgrid warning of issue#1362

ruil2 committed 11 years ago

Commit 47dd4de2 parents 04cb9f3 a4ae5e35 files · +23 −20Browse files

Showing the changes to codec/encoder/core/src/encoder_ext.cpp (1 of 5 files). Show all

Unified · Split

codec/encoder/core/src/encoder_ext.cpp+1−6
@@ -3727,11 +3727,6 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, SFrameBSInfo* pFbi, const SSour · 3726 unmodified lines
37273727 WelsSwapDqLayers (pCtx);
37283728 }
37293729
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−
37353730 if (pCtx->pVpp->UpdateSpatialPictures (pCtx, pSvcParam, iCurTid, iDidIdx) != 0) {
37363731 ForceCodingIDR (pCtx);
37373732 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
37423737
37433738 if (pSvcParam->bEnableLongTermReference && ((pCtx->pLtr[pCtx->uiDependencyId].bLTRMarkingFlag
37443739 && (pCtx->pLtr[pCtx->uiDependencyId].iLTRMarkMode == LTR_DIRECT_MARK)) || eFrameType == videoFrameTypeIDR)) {
3745− pCtx->bLongTermRefFlag[iDidIdx][iCurTid] = true;
3740+ pCtx->bRefOfCurTidIsLtr[iDidIdx][iCurTid] = true;
37463741 }
37473742 }
37483743

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t