Showing the changes to codec/decoder/core/src/decoder.cpp (1 of 4 files). Show all
Unified · Split
| @@ -1001,7 +1001,7 @@ void UpdateDecStatNoFreezingInfo (PWelsDecoderContext pCtx) { · 1000 unmodified lines | |||
| 1001 | pDecStat->iAvgLumaQp = iTotalQp; | 1001 | pDecStat->iAvgLumaQp = iTotalQp; |
| 1002 | } else | 1002 | } else |
| 1003 | pDecStat->iAvgLumaQp = (int) ((uint64_t) (pDecStat->iAvgLumaQp * pDecStat->uiDecodedFrameCount + iTotalQp) / | 1003 | pDecStat->iAvgLumaQp = (int) ((uint64_t) (pDecStat->iAvgLumaQp * pDecStat->uiDecodedFrameCount + iTotalQp) / |
| 1004 | (pDecStat->uiDecodedFrameCount + 1)); | 1004 | (pDecStat->uiDecodedFrameCount + 1)); |
| 1005 | 1005 | ||
| 1006 | //update IDR number | 1006 | //update IDR number |
| 1007 | if (pCurDq->sLayerInfo.sNalHeaderExt.bIdrFlag) { | 1007 | if (pCurDq->sLayerInfo.sNalHeaderExt.bIdrFlag) { |