This fixes warnings about variables that are set but not used.
Showing the changes to codec/encoder/core/src/wels_preprocess.cpp (1 of 1 file). Show all
Unified · Split
| @@ -969,7 +969,7 @@ ESceneChangeIdc CWelsPreProcess::DetectSceneChangeScreen (sWelsEncCtx* pCtx, SPi · 968 unmodified lines | |||
| 969 | 969 | ||
| 970 | int32_t iNumOfLargeChange = 0, iNumOfMediumChangeToLtr = 0; | 970 | int32_t iNumOfLargeChange = 0, iNumOfMediumChangeToLtr = 0; |
| 971 | 971 | ||
| 972 | bool bBestRefIsLtr = false, bIsClosestLtrFrame = false; | 972 | bool bIsClosestLtrFrame = false; |
| 973 | int32_t ret = 1, iScdIdx = 0; | 973 | int32_t ret = 1, iScdIdx = 0; |
| 974 | 974 | ||
| 975 | SPicture* pRefPic = NULL; | 975 | SPicture* pRefPic = NULL; |
| @@ -1044,7 +1044,6 @@ ESceneChangeIdc CWelsPreProcess::DetectSceneChangeScreen (sWelsEncCtx* pCtx, SPi · 68 unmodified lines | |||
| 1044 | if (JudgeBestRef (pRefPic, sLtrJudgement, iFrameComplexity, bIsClosestLtrFrame)) { | 1044 | if (JudgeBestRef (pRefPic, sLtrJudgement, iFrameComplexity, bIsClosestLtrFrame)) { |
| 1045 | SaveBestRefToJudgement (iRefPicAvQP, iFrameComplexity, &sLtrJudgement); | 1045 | SaveBestRefToJudgement (iRefPicAvQP, iFrameComplexity, &sLtrJudgement); |
| 1046 | SaveBestRefToLocal (pRefPicInfo, sSceneChangeResult, &sLtrSaved); | 1046 | SaveBestRefToLocal (pRefPicInfo, sSceneChangeResult, &sLtrSaved); |
| 1047 | bBestRefIsLtr = bCurRefIsLtr; | ||
| 1048 | } | 1047 | } |
| 1049 | if (bCurRefIsLtr && JudgeBestRef (pRefPic, sSceneLtrJudgement, iFrameComplexity, bIsClosestLtrFrame)) { | 1048 | if (bCurRefIsLtr && JudgeBestRef (pRefPic, sSceneLtrJudgement, iFrameComplexity, bIsClosestLtrFrame)) { |
| 1050 | SaveBestRefToJudgement (iRefPicAvQP, iFrameComplexity, &sSceneLtrJudgement); | 1049 | SaveBestRefToJudgement (iRefPicAvQP, iFrameComplexity, &sSceneLtrJudgement); |