History

change the solution when invalid tid is found

Sijia Chen committed 11 years ago

Commit 82e7dcd1 parent 8a96d061 file · +4 −1Browse files

Showing the changes to codec/encoder/core/src/wels_preprocess.cpp (1 of 1 file). Show all

Unified · Split

codec/encoder/core/src/wels_preprocess.cpp+4−1
@@ -1037,7 +1037,10 @@ ESceneChangeIdc CWelsPreProcess::DetectSceneChangeScreen (sWelsEncCtx* pCtx, SPi · 1036 unmodified lines
10371037 (pCurPicture->iHeightInPixel >> 3) * STATIC_SCENE_MOTION_RATIO));
10381038 const uint8_t iCurTid = GetTemporalLevel (&pSvcParam->sDependencyLayers[m_pEncCtx->sSpatialIndexMap[0].iDid],
10391039 m_pEncCtx->iCodingIndex, pSvcParam->uiGopSize);
1040− const int32_t iClosestLtrFrameNum = (iCurTid != INVALID_TEMPORAL_ID ? pCtx->pLtr[iTargetDid].iLastLtrIdx[iCurTid] : -1);//TBD
1040+ if (iCurTid == INVALID_TEMPORAL_ID) {
1041+ return LARGE_CHANGED_SCENE;
1042+ }
1043+ const int32_t iClosestLtrFrameNum = pCtx->pLtr[iTargetDid].iLastLtrIdx[iCurTid];
10411044 if (pSvcParam->bEnableLongTermReference) {
10421045 GetAvailableRefListLosslessScreenRefSelection (pSrcPicList, iCurTid, iClosestLtrFrameNum, &sAvailableRefList[0],
10431046 iAvailableRefNum,

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