Showing the changes to codec/decoder/core/src/error_concealment.cpp (1 of 8 files). Show all
Unified · Split
| @@ -157,8 +157,9 @@ void DoErrorConSliceCopy (PWelsDecoderContext pCtx) { · 156 unmodified lines | |||
| 157 | } //iMbX | 157 | } //iMbX |
| 158 | } //iMbY | 158 | } //iMbY |
| 159 | 159 | ||
| 160 | pCtx->sDecoderStatistics.uiAvgEcRatio = (pCtx->sDecoderStatistics.uiAvgEcRatio * pCtx->sDecoderStatistics.uiEcFrameNum) | 160 | if (!pCtx->bFreezeOutput) |
| 161 | + ((iMbEcedNum * 100) / iMbNum) ; | 161 | pCtx->sDecoderStatistics.uiAvgEcRatio = (pCtx->sDecoderStatistics.uiAvgEcRatio * pCtx->sDecoderStatistics.uiEcFrameNum) |
| 162 | + ((iMbEcedNum * 100) / iMbNum) ; | ||
| 162 | } | 163 | } |
| 163 | 164 | ||
| 164 | //Do error concealment using slice MV copy method | 165 | //Do error concealment using slice MV copy method |
| @@ -415,8 +416,9 @@ void DoErrorConSliceMVCopy (PWelsDecoderContext pCtx) { · 250 unmodified lines | |||
| 415 | } //iMbX | 416 | } //iMbX |
| 416 | } //iMbY | 417 | } //iMbY |
| 417 | 418 | ||
| 418 | pCtx->sDecoderStatistics.uiAvgEcRatio = (pCtx->sDecoderStatistics.uiAvgEcRatio * pCtx->sDecoderStatistics.uiEcFrameNum) | 419 | if (!pCtx->bFreezeOutput) |
| 419 | + ((iMbEcedNum * 100) / iMbNum) ; | 420 | pCtx->sDecoderStatistics.uiAvgEcRatio = (pCtx->sDecoderStatistics.uiAvgEcRatio * pCtx->sDecoderStatistics.uiEcFrameNum) |
| 421 | + ((iMbEcedNum * 100) / iMbNum) ; | ||
| 420 | } | 422 | } |
| 421 | 423 | ||
| 422 | //Mark erroneous frame as Ref Pic into DPB | 424 | //Mark erroneous frame as Ref Pic into DPB |